X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/08d75d97023438c8cc412a249ffc40e0592e0b7a..b225bf93b7eaf8d4d6b1ac172463d280b48a782f:/modules/m_whowas.c diff --git a/modules/m_whowas.c b/modules/m_whowas.c index 0728a80e..336a6af4 100644 --- a/modules/m_whowas.c +++ b/modules/m_whowas.c @@ -29,7 +29,7 @@ #include "client.h" #include "common.h" #include "hash.h" -#include "irc_string.h" +#include "match.h" #include "ircd.h" #include "ircd_defs.h" #include "numeric.h" @@ -53,7 +53,6 @@ DECLARE_MODULE_AV1(whowas, NULL, NULL, whowas_clist, NULL, NULL, "$Revision: 171 /* ** m_whowas -** parv[0] = sender prefix ** parv[1] = nickname queried */ static int @@ -116,6 +115,10 @@ m_whowas(struct Client *client_p, struct Client *source_p, int parc, const char form_str(RPL_WHOISACTUALLY), temp->name, temp->sockhost); #endif + if (!EmptyString(temp->suser)) + sendto_one_numeric(source_p, RPL_WHOISLOGGEDIN, + "%s %s :was logged in as", + temp->name, temp->suser); sendto_one_numeric(source_p, RPL_WHOISSERVER, form_str(RPL_WHOISSERVER), temp->name, temp->servername,