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:
Aaron Jones 2017-07-31 06:07:12 +00:00
parent daf1b4b9af
commit c67c9451a1
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -193,9 +193,17 @@ mo_hurt(struct Client *client_p, struct Client *source_p,
}
if (parc == 3)
expire = NULL, ip = parv[1], reason = parv[2];
{
expire = NULL;
ip = parv[1];
reason = parv[2];
}
else
expire = parv[1], ip = parv[2], reason = parv[3];
{
expire = parv[1];
ip = parv[2];
reason = parv[3];
}
if (!expire)
expire_time = HURT_DEFAULT_EXPIRE;