summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-10 20:48:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-10 20:48:46 +0000
commit9d5dfe04342ea1842ff1e763a19a5fa65eaf034d (patch)
tree2eb1ccd992f340a6bdb519ed22c429a5bd867703 /src/channels.cpp
parent1885e8805103c95aa75d73af8ee2fd55ad1b67e1 (diff)
Fix for bug #513
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9449 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 5f0f545ae..838013c4c 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -433,7 +433,10 @@ bool Channel::IsBanned(User* user)
char mask[MAXBUF];
int MOD_RESULT = 0;
FOREACH_RESULT(I_OnCheckBan,OnCheckBan(user, this));
- if (!MOD_RESULT)
+
+ if (MOD_RESULT == -1)
+ return true;
+ else if (MOD_RESULT == 0)
{
snprintf(mask, MAXBUF, "%s!%s@%s", user->nick, user->ident, user->GetIPString());
for (BanList::iterator i = this->bans.begin(); i != this->bans.end(); i++)