Revision: 1916
          
http://undernet-ircu.svn.sourceforge.net/undernet-ircu/?rev=1916&view=rev
Author:   entrope
Date:     2009-07-06 01:41:45 +0000 (Mon, 06 Jul 2009)

Log Message:
-----------
Fix SF bug #2721107 (Gline lifetime changes from servers change the reason.)

Modified Paths:
--------------
    ircu2/branches/u2_10_12_branch/ChangeLog
    ircu2/branches/u2_10_12_branch/ircd/m_gline.c

Modified: ircu2/branches/u2_10_12_branch/ChangeLog
===================================================================
--- ircu2/branches/u2_10_12_branch/ChangeLog    2009-07-06 01:27:24 UTC (rev 
1915)
+++ ircu2/branches/u2_10_12_branch/ChangeLog    2009-07-06 01:41:45 UTC (rev 
1916)
@@ -1,5 +1,10 @@
 2009-07-05  Michael Poole <[email protected]>
 
+       * 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 <[email protected]>
+
        * ircd/channel.c (mode_parse_client): Ignore anything after a
        colon when the mode is CHFL_VOICE or the mode is being removed.
 

Modified: ircu2/branches/u2_10_12_branch/ircd/m_gline.c
===================================================================
--- ircu2/branches/u2_10_12_branch/ircd/m_gline.c       2009-07-06 01:27:24 UTC 
(rev 1915)
+++ ircu2/branches/u2_10_12_branch/ircd/m_gline.c       2009-07-06 01:41:45 UTC 
(rev 1916)
@@ -1,4 +1,4 @@
-/*
+\/*
  * IRC - Internet Relay Chat, ircd/m_gline.c
  * Copyright (C) 1990 Jarkko Oikarinen and
  *                    University of Oulu, Computing Center
@@ -308,7 +308,7 @@
        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];
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to