summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-10-23 14:05:43 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-10-23 14:05:43 +0000
commita7281b9213088e5ed4c0748c16eed13f3bf3f222 (patch)
tree3d2136168461a5a7cdcbe3bca30a4c26f4f5d1b7
parent4e52eb64c71d6e6a25e4033eb87e4659f0107291 (diff)
- Stole ircu's RPL_WHOISACCOUNT numeric
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2479 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--include/numeric.h1
-rw-r--r--modules/m_whois.c5
-rw-r--r--src/numeric.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/include/numeric.h b/include/numeric.h
index c7d50a8..2a9efad 100644
--- a/include/numeric.h
+++ b/include/numeric.h
@@ -134,6 +134,7 @@ extern const char *form_str(unsigned int);
#define RPL_LISTEND 323
#define RPL_CHANNELMODEIS 324
#define RPL_CREATIONTIME 329
+#define RPL_WHOISACCOUNT 330
#define RPL_NOTOPIC 331
#define RPL_TOPIC 332
#define RPL_TOPICWHOTIME 333
diff --git a/modules/m_whois.c b/modules/m_whois.c
index ec4b555..8609d82 100644
--- a/modules/m_whois.c
+++ b/modules/m_whois.c
@@ -107,6 +107,11 @@ whois_person(struct Client *source_p, struct Client *target_p)
sendto_one(source_p, form_str(RPL_WHOISREGNICK),
me.name, source_p->name, target_p->name);
+ if (!IsDigit(target_p->svid[0]))
+ sendto_one(source_p, form_str(RPL_WHOISACCOUNT),
+ me.name, source_p->name, target_p->name,
+ target_p->svid);
+
if (target_p->away[0])
sendto_one(source_p, form_str(RPL_AWAY),
me.name, source_p->name, target_p->name,
diff --git a/src/numeric.c b/src/numeric.c
index dab7327..71ca857 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -357,7 +357,7 @@ static const char *const replies[] = {
/* 327 */ NULL,
/* 328 */ NULL,
/* 329 RPL_CREATIONTIME */ ":%s 329 %s %s %lu",
-/* 330 */ NULL,
+/* 330 RPL_WHOISACCOUNT */ ":%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",