git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1916
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+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
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
* 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 */
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];
lifetime = 0;
reason = parv[5];