Fix a couple of compile warnings.
This commit is contained in:
parent
d76346d3d4
commit
4eaadbf404
|
@ -317,7 +317,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
|
||||||
|
|
||||||
if(IsOper(target_p))
|
if(IsOper(target_p))
|
||||||
{
|
{
|
||||||
if(md = user_metadata_find(target_p, "OPERSTRING"))
|
if(md == user_metadata_find(target_p, "OPERSTRING"))
|
||||||
sendto_one_numeric(source_p, 313, "%s :%s", target_p->name, md->value);
|
sendto_one_numeric(source_p, 313, "%s :%s", target_p->name, md->value);
|
||||||
else
|
else
|
||||||
sendto_one_numeric(source_p, RPL_WHOISOPERATOR, form_str(RPL_WHOISOPERATOR),
|
sendto_one_numeric(source_p, RPL_WHOISOPERATOR, form_str(RPL_WHOISOPERATOR),
|
||||||
|
@ -325,7 +325,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
|
||||||
IsService(target_p) ? ConfigFileEntry.servicestring :
|
IsService(target_p) ? ConfigFileEntry.servicestring :
|
||||||
(IsAdmin(target_p) ? GlobalSetOptions.adminstring :
|
(IsAdmin(target_p) ? GlobalSetOptions.adminstring :
|
||||||
GlobalSetOptions.operstring));
|
GlobalSetOptions.operstring));
|
||||||
if(md = user_metadata_find(target_p, "SWHOIS"))
|
if(md == user_metadata_find(target_p, "SWHOIS"))
|
||||||
sendto_one_numeric(source_p, 320, "%s :%s", target_p->name, md->value);
|
sendto_one_numeric(source_p, 320, "%s :%s", target_p->name, md->value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -915,7 +915,7 @@ static void
|
||||||
expire_umode_p(void *data)
|
expire_umode_p(void *data)
|
||||||
{
|
{
|
||||||
struct Client *source_p = data;
|
struct Client *source_p = data;
|
||||||
char *parv[4] = {source_p->name, source_p->name, "-p", NULL};
|
const char *parv[4] = {source_p->name, source_p->name, "-p", NULL};
|
||||||
source_p->localClient->override_timeout_event = NULL;
|
source_p->localClient->override_timeout_event = NULL;
|
||||||
user_mode(source_p, source_p, 3, parv);
|
user_mode(source_p, source_p, 3, parv);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue