summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrobbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 21:45:41 +0000
committerrobbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 21:45:41 +0000
commitc52f0e5cac512ca0b37f2156f6e9b01ea03d7570 (patch)
tree84f30f70daa418ab2fdca66dcf8b3d6b55dd3fae /src
parent2d768eb325fc7665093faedf62e08dd5f98cc5f8 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/core/os_modunload.c6
1 files 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);
}