1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 23:03:12 +02:00

- Show account name in /WHOIS, for ESVID-capable services packages, patch from nenotopia (#3966).

This commit is contained in:
Bram Matthys
2011-12-25 14:29:03 +01:00
parent d272d2d6a0
commit d512f79a6a
4 changed files with 13 additions and 1 deletions
+2
View File
@@ -2330,3 +2330,5 @@
now store a string (of max NICKLEN size) as service stamp. See
protoctl.txt and serverprotocol.html in doc/technical for more information.
Patch from nenotopia (#3966).
- Show account name in /WHOIS, for ESVID-capable services packages, patch
from nenotopia (#3966).
+3
View File
@@ -180,6 +180,9 @@
#define RPL_LISTEND 323
#define RPL_CHANNELMODEIS 324
#define RPL_CREATIONTIME 329
#define RPL_WHOISLOGGEDIN 330 /* ircu/charybdis-family --nenolod */
#define RPL_NOTOPIC 331
#define RPL_TOPIC 332
#define RPL_TOPICWHOTIME 333
+7
View File
@@ -321,6 +321,13 @@ DLLFUNC int m_whois(aClient *cptr, aClient *sptr, int parc, char *parv[])
me.name, RPL_WHOISSPECIAL, parv[0],
name, acptr->user->swhois);
/*
* display services account name if it's actually a services account name and
* not a legacy timestamp. --nenolod
*/
if (!isdigit(*user->svid) && *user->svid != '*')
sendto_one(sptr, rpl_str(RPL_WHOISLOGGEDIN), me.name, parv[0], name, user->svid);
/*
* Fix /whois to not show idle times of
* global opers to anyone except another
+1 -1
View File
@@ -367,7 +367,7 @@ static char *replies[] = {
/* 327 */ NULL, /* Used */
/* 328 */ NULL, /* bahamut, austhex */
/* 329 RPL_CREATIONTIME */ ":%s 329 %s %s %lu",
/* 330 */ NULL, /* Used */
/* 330 RPL_WHOISLOGGEDIN */ ":%s 330 %s %s %s :is logged in as",
/* 331 RPL_NOTOPIC */ ":%s 331 %s %s :No topic is set.",
/* 332 RPL_TOPIC */ ":%s 332 %s %s :%s",
/* 333 RPL_TOPICWHOTIME */ ":%s 333 %s %s %s %lu",