mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 15:03:13 +02:00
- Make default service stamp 0 (zero) again, instead of '*' which was
introduced by ESVID changes a few days ago. This makes anope happy, and also means nothing will change in a non-ESVID scenario.
This commit is contained in:
@@ -2343,3 +2343,6 @@
|
||||
- Enforce matching of unrealircd version and PACKAGE_VERSION macros. Now the
|
||||
UNREAL_VERSION_GENERATION, UNREAL_VERSION_MAJOR, UNREAL_VERSION_MINOR, and
|
||||
UNREAL_VERSION_SUFFIX macros are autogenerated from PACKAGE_VERSION (#4014).
|
||||
- Make default service stamp 0 (zero) again, instead of '*' which was
|
||||
introduced by ESVID changes a few days ago. This makes anope happy,
|
||||
and also means nothing will change in a non-ESVID scenario.
|
||||
|
||||
@@ -518,6 +518,8 @@ char *mask;
|
||||
static char retbuf[NICKLEN + 4];
|
||||
|
||||
strlcpy(retbuf, para, sizeof(retbuf)); /* truncate */
|
||||
if (!strcmp(retbuf+3, "0"))
|
||||
return NULL; /* ~a:0 would mean ban all non-regged, but we already have +R for that. */
|
||||
return retbuf;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -195,7 +195,7 @@ anUser *make_user(aClient *cptr)
|
||||
user->invited = NULL;
|
||||
user->silence = NULL;
|
||||
user->server = NULL;
|
||||
strlcpy(user->svid, "*", sizeof(user->svid));
|
||||
strlcpy(user->svid, "0", sizeof(user->svid));
|
||||
user->lopt = NULL;
|
||||
user->whowas = NULL;
|
||||
user->snomask = 0;
|
||||
|
||||
@@ -129,20 +129,20 @@ DLLFUNC CMD_FUNC(m_user)
|
||||
|
||||
if (parc == 6 && IsServer(cptr))
|
||||
{
|
||||
sstamp = (BadPtr(parv[4])) ? "*" : parv[4];
|
||||
sstamp = (BadPtr(parv[4])) ? "0" : parv[4];
|
||||
realname = (BadPtr(parv[5])) ? "<bad-realname>" : parv[5];
|
||||
umodex = NULL;
|
||||
}
|
||||
else if (parc == 8 && IsServer(cptr))
|
||||
{
|
||||
sstamp = (BadPtr(parv[4])) ? "*" : parv[4];
|
||||
sstamp = (BadPtr(parv[4])) ? "0" : parv[4];
|
||||
realname = (BadPtr(parv[7])) ? "<bad-realname>" : parv[7];
|
||||
umodex = parv[5];
|
||||
virthost = parv[6];
|
||||
}
|
||||
else if (parc == 9 && IsServer(cptr))
|
||||
{
|
||||
sstamp = (BadPtr(parv[4])) ? "*" : parv[4];
|
||||
sstamp = (BadPtr(parv[4])) ? "0" : parv[4];
|
||||
realname = (BadPtr(parv[8])) ? "<bad-realname>" : parv[8];
|
||||
umodex = parv[5];
|
||||
virthost = parv[6];
|
||||
|
||||
@@ -325,7 +325,7 @@ DLLFUNC int m_whois(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
* display services account name if it's actually a services account name and
|
||||
* not a legacy timestamp. --nenolod
|
||||
*/
|
||||
if (!isdigit(*user->svid) && *user->svid != '*')
|
||||
if (!isdigit(*user->svid) && *user->svid != '0')
|
||||
sendto_one(sptr, rpl_str(RPL_WHOISLOGGEDIN), me.name, parv[0], name, user->svid);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user