From c52f0e5cac512ca0b37f2156f6e9b01ea03d7570 Mon Sep 17 00:00:00 2001 From: robbeh Date: Sat, 15 Nov 2008 21:45:41 +0000 Subject: [PATCH] Check for MOD_ERR_OK instead of any number - this will prevent getting an error message stright after a success message when a module was unloaded properly :) git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1730 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_modunload.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/os_modunload.c b/src/core/os_modunload.c index 994a056ad..6fede733b 100644 --- a/src/core/os_modunload.c +++ b/src/core/os_modunload.c @@ -6,8 +6,8 @@ * Please read COPYING and README for further details. * * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * + * Based on the original code of Services by Andy Church. + * * $Id$ * */ @@ -78,7 +78,7 @@ int do_modunload(User *u) status = ModuleManager::UnloadModule(m, u); - if (!status) + if (status != MOD_ERR_OK) { notice_lang(s_OperServ, u, OPER_MODULE_REMOVE_FAIL, name); }