]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_whois.c
ssl sync with http://hg.angelforce.ru/charybdis-old
[irc/rqf/shadowircd.git] / modules / m_whois.c
index 516863e5e5a005a1b928b05c712af9100148d548..c2a00ef5b1cd74230b5ba05e8321d5e8862c97d3 100644 (file)
@@ -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))\r
+               target_p = find_named_person(nick);\r
+       else\r
+               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
        {