From e997de794f6671ebda5a58b4452657182a742073 Mon Sep 17 00:00:00 2001 From: om Date: Sun, 9 Jul 2006 10:44:39 +0000 Subject: [PATCH] Add a return MODEACTION_DENY, fixes 'control reaches end of non-void function warning' git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4199 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_botmode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp index fa79c83f6..7120c36c7 100644 --- a/src/modules/m_botmode.cpp +++ b/src/modules/m_botmode.cpp @@ -47,6 +47,8 @@ class BotMode : public ModeHandler return MODEACTION_ALLOW; } } + + return MODEACTION_DENY; } }; @@ -112,4 +114,3 @@ extern "C" void * init_module( void ) { return new ModuleBotModeFactory; } - -- 2.39.5