git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1315
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
* ircd/IPcheck.c (ip_registry_find): Use canonical form of IP
address to look up and compare against hash entries.
+ * ircd/channel.c (apply_ban): Do not free a succesful BAN_DEL ban.
+
* ircd/ircd_parser.y (clientblock): Stash IP string in aconf->name.
(clienthost): Split hosts that contain '@' into username and host.
(clientip): Split IPs that contain '@' into username and IP.
remove_count++;
}
}
+ if (remove_count)
+ return 0;
+ /* If no matches were found, fail. */
if (do_free)
free_ban(newban);
else
MyFree(newban->banstr);
- /* If no matches were found, fail. */
- return remove_count ? 0 : 3;
+ return 3;
}
if (do_free)
free_ban(newban);