diff options
-rw-r--r-- | include/numeric.h | 1 | ||||
-rw-r--r-- | modules/m_whois.c | 5 | ||||
-rw-r--r-- | src/numeric.c | 2 |
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", |