From 255b59e44b18b1960d49f552eee2dbc663b99dbb Mon Sep 17 00:00:00 2001 From: peavey Date: Fri, 9 May 2008 15:04:22 +0000 Subject: 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 --- src/modules/m_banexception.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_banexception.cpp') 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; } -- cgit v1.2.3