From 9d5dfe04342ea1842ff1e763a19a5fa65eaf034d Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Apr 2008 20:48:46 +0000 Subject: Fix for bug #513 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9449 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/channels.cpp') 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++) -- cgit v1.2.3