mirror of
https://github.com/anope/anope.git
synced 2026-07-03 15:33:12 +02:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user