Remove silly a2client_p, entirely pointless since User.server removal.

(and was pointless since Client.servptr was introduced)
This commit is contained in:
Jilles Tjoelker 2008-01-14 23:59:46 +01:00
parent c7874951aa
commit 8170176a78

View file

@ -231,7 +231,6 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
{ {
char buf[BUFSIZE]; char buf[BUFSIZE];
dlink_node *ptr; dlink_node *ptr;
struct Client *a2client_p;
struct membership *msptr; struct membership *msptr;
struct Channel *chptr; struct Channel *chptr;
int cur_len = 0; int cur_len = 0;
@ -255,8 +254,6 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
return; return;
} }
a2client_p = target_p->servptr;
sendto_one_numeric(source_p, RPL_WHOISUSER, form_str(RPL_WHOISUSER), sendto_one_numeric(source_p, RPL_WHOISUSER, form_str(RPL_WHOISUSER),
target_p->name, target_p->username, target_p->name, target_p->username,
target_p->host, target_p->info); 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), sendto_one_numeric(source_p, RPL_WHOISSERVER, form_str(RPL_WHOISSERVER),
target_p->name, target_p->servptr->name, 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) if(target_p->user->away)
sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY), sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),