X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/c88cdb00957d1bafae4587343b5ab7df14b75f8b..1f8b58e769799b9522266f9b557b56e7cf32e6c1:/modules/m_whois.c diff --git a/modules/m_whois.c b/modules/m_whois.c index 1478119..fcf7a68 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -231,7 +231,6 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy) { char buf[BUFSIZE]; dlink_node *ptr; - struct Client *a2client_p; struct membership *msptr; struct Channel *chptr; int cur_len = 0; @@ -255,8 +254,6 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy) return; } - a2client_p = target_p->servptr; - sendto_one_numeric(source_p, RPL_WHOISUSER, form_str(RPL_WHOISUSER), target_p->name, target_p->username, target_p->host, target_p->info); @@ -313,7 +310,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy) sendto_one_numeric(source_p, RPL_WHOISSERVER, form_str(RPL_WHOISSERVER), target_p->name, target_p->servptr->name, - a2client_p ? a2client_p->info : "*Not On This Net*"); + target_p->servptr->info); if(target_p->user->away) sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),