modules/m_whois.c: misc cleanup for compiler warning
m_whois.c:331:8: warning: declaration shadows a local variable [-Wshadow]
This commit is contained in:
parent
72fd7c04ac
commit
ee0a3970c8
1 changed files with 3 additions and 3 deletions
|
@ -328,11 +328,11 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
|
||||||
|
|
||||||
if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) && IsOper(target_p) && IsOper(source_p))
|
if(MyClient(target_p) && !EmptyString(target_p->localClient->opername) && IsOper(target_p) && IsOper(source_p))
|
||||||
{
|
{
|
||||||
char buf[512];
|
char obuf[512];
|
||||||
rb_snprintf(buf, sizeof(buf), "is opered as %s, privset %s",
|
rb_snprintf(obuf, sizeof(obuf), "is opered as %s, privset %s",
|
||||||
target_p->localClient->opername, target_p->localClient->privset->name);
|
target_p->localClient->opername, target_p->localClient->privset->name);
|
||||||
sendto_one_numeric(source_p, RPL_WHOISSPECIAL, form_str(RPL_WHOISSPECIAL),
|
sendto_one_numeric(source_p, RPL_WHOISSPECIAL, form_str(RPL_WHOISSPECIAL),
|
||||||
target_p->name, buf);
|
target_p->name, obuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(IsSSLClient(target_p))
|
if(IsSSLClient(target_p))
|
||||||
|
|
Loading…
Reference in a new issue