From 5b58824b6c5e34327a758419392f4f0490e5c921 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Nov 2007 21:10:44 +0000 Subject: Aaaand, the rest of it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8525 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_loadmodule.cpp | 2 +- src/commands/cmd_reloadmodule.cpp | 2 +- src/commands/cmd_unloadmodule.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/commands/cmd_loadmodule.cpp b/src/commands/cmd_loadmodule.cpp index 14ea660f9..46d7351a6 100644 --- a/src/commands/cmd_loadmodule.cpp +++ b/src/commands/cmd_loadmodule.cpp @@ -31,7 +31,7 @@ CmdResult CommandLoadmodule::Handle (const char** parameters, int, User *user) } else { - user->WriteServ("974 %s %s :Failed to load module: %s",user->nick, parameters[0], ServerInstance->Modules->LastError()); + user->WriteServ("974 %s %s :%s",user->nick, parameters[0], ServerInstance->Modules->LastError().c_str()); return CMD_FAILURE; } } diff --git a/src/commands/cmd_reloadmodule.cpp b/src/commands/cmd_reloadmodule.cpp index 8be2110ec..f43c1496b 100644 --- a/src/commands/cmd_reloadmodule.cpp +++ b/src/commands/cmd_reloadmodule.cpp @@ -33,6 +33,6 @@ CmdResult CommandReloadmodule::Handle (const char** parameters, int, User *user) } ServerInstance->WriteOpers("*** RELOAD MODULE: %s unsuccessfully reloaded %s",user->nick, parameters[0]); - user->WriteServ("975 %s %s :Module failed to reload.",user->nick, parameters[0]); + user->WriteServ("975 %s %s :%s",user->nick, parameters[0], ServerInstance->Modules->LastError().c_str()); return CMD_FAILURE; } diff --git a/src/commands/cmd_unloadmodule.cpp b/src/commands/cmd_unloadmodule.cpp index 3c66d52e0..95098f134 100644 --- a/src/commands/cmd_unloadmodule.cpp +++ b/src/commands/cmd_unloadmodule.cpp @@ -30,7 +30,7 @@ CmdResult CommandUnloadmodule::Handle (const char** parameters, int, User *user) } else { - user->WriteServ("972 %s %s :Failed to unload module: %s",user->nick, parameters[0],ServerInstance->Modules->LastError()); + user->WriteServ("972 %s %s :%s",user->nick, parameters[0], ServerInstance->Modules->LastError().c_str()); return CMD_FAILURE; } -- cgit v1.2.3