X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/9f6bbe3cf9c786c5089bfd605315aed5268e8974..8db00894ab7750513d8750290e508b5802bc1fc5:/modules/m_whois.c?ds=inline diff --git a/modules/m_whois.c b/modules/m_whois.c index 044493b..c2a00ef 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -38,7 +38,7 @@ #include "irc_string.h" #include "sprintf_irc.h" #include "s_conf.h" -#include "s_log.h" +#include "logger.h" #include "msg.h" #include "parse.h" #include "modules.h" @@ -190,7 +190,10 @@ do_whois(struct Client *client_p, struct Client *source_p, int parc, const char nick++; } - target_p = find_named_person(nick); + if(MyClient(source_p)) + target_p = find_named_person(nick); + else + target_p = find_person(nick); if(target_p != NULL) { @@ -347,6 +350,9 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy) target_p->name, rb_current_time() - target_p->localClient->last, target_p->localClient->firsttime); + + sendto_one_notice(source_p, ":%ld %ld", target_p->localClient->last, + target_p->localClient->firsttime); } else {