extensions/hurt.c: misc cleanups for compiler warnings
hurt.c:196:16: warning: possible misuse of comma operator here [-Wcomma] (... and 3 more of the same)
This commit is contained in:
parent
daf1b4b9af
commit
c67c9451a1
1 changed files with 10 additions and 2 deletions
|
@ -193,9 +193,17 @@ mo_hurt(struct Client *client_p, struct Client *source_p,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parc == 3)
|
if (parc == 3)
|
||||||
expire = NULL, ip = parv[1], reason = parv[2];
|
{
|
||||||
|
expire = NULL;
|
||||||
|
ip = parv[1];
|
||||||
|
reason = parv[2];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
expire = parv[1], ip = parv[2], reason = parv[3];
|
{
|
||||||
|
expire = parv[1];
|
||||||
|
ip = parv[2];
|
||||||
|
reason = parv[3];
|
||||||
|
}
|
||||||
|
|
||||||
if (!expire)
|
if (!expire)
|
||||||
expire_time = HURT_DEFAULT_EXPIRE;
|
expire_time = HURT_DEFAULT_EXPIRE;
|
||||||
|
|
Loading…
Reference in a new issue