diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-09 15:04:22 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-09 15:04:22 +0000 |
commit | 255b59e44b18b1960d49f552eee2dbc663b99dbb (patch) | |
tree | 4d1edded9a6b35c4599cea72b7f50e2349e56ab1 | |
parent | 02bbbd0cdf44d2f745008db876db574ce41b768d (diff) |
Fix crash if OnCheckBan is called and there is no list, the if was reversed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9679 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_banexception.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index c39a74164..e606346c3 100644 --- a/src/modules/m_banexception.cpp +++ b/src/modules/m_banexception.cpp @@ -67,9 +67,9 @@ public: modelist* list; chan->GetExt(be->GetInfoKey(), list); - if (list) + if (!list) { - // No list, so let them in anyway. + // No list, proceed normally return 0; } |