Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2005-09-14 18:55:37 UTC
Modified files:
ChangeLog ircd/channel.c
Log message:
Fix another miscomparison in find_ban().
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.698 ircu2.10/ChangeLog:1.699
--- ircu2.10/ChangeLog:1.698 Tue Sep 13 08:17:46 2005
+++ ircu2.10/ChangeLog Wed Sep 14 11:55:27 2005
@@ -1,3 +1,7 @@
+2005-09-14 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/channel.c (find_ban): Fix the sense of another check.
+
2005-09-13 Michael Poole <[EMAIL PROTECTED]>
* include/channel.h (clean_channelname): Remove prototype.
Index: ircu2.10/ircd/channel.c
diff -u ircu2.10/ircd/channel.c:1.152 ircu2.10/ircd/channel.c:1.153
--- ircu2.10/ircd/channel.c:1.152 Tue Sep 13 05:06:30 2005
+++ ircu2.10/ircd/channel.c Wed Sep 14 11:55:27 2005
@@ -19,7 +19,7 @@
*/
/** @file
* @brief Channel management and maintenance
- * @version $Id: channel.c,v 1.152 2005/09/13 12:06:30 entrope Exp $
+ * @version $Id: channel.c,v 1.153 2005/09/14 18:55:27 entrope Exp $
*/
#include "config.h"
@@ -383,7 +383,7 @@
if (!((banlist->flags & BAN_IPMASK)
&& ipmask_check(&cli_ip(cptr), &banlist->address, banlist->addrbits))
&& match(hostmask, cli_user(cptr)->host)
- && !(sr && match(hostmask, sr)))
+ && !(sr && !match(hostmask, sr)))
continue;
/* If an exception matches, no ban can match. */
if (banlist->flags & BAN_EXCEPTION)
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches