+2009-07-05 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_gline.c (ms_gline): Fix the sense of the test for
+ strtoul() when parsing G-line lifetimes -- zero indicates failure.
+
2009-07-05 Michael Poole <mdpoole@troilus.org>
* ircd/channel.c (mode_parse_client): Ignore anything after a
-/*
+\/*
* IRC - Internet Relay Chat, ircd/m_gline.c
* Copyright (C) 1990 Jarkko Oikarinen and
* University of Oulu, Computing Center
if (!agline || /* gline creation, has to be the reason */
/* trial-convert as lifetime, and if it doesn't fully convert,
* it must be the reason */
- ((lifetime = strtoul(parv[5], &tmp, 10)) && !*tmp)) {
+ (!(lifetime = strtoul(parv[5], &tmp, 10)) && !*tmp)) {
lifetime = 0;
reason = parv[5];