summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 21:25:29 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 21:25:29 +0000
commit59c6dc985394756064c1245522f27eddf9614f8d (patch)
tree08df5472c285a2b37d2bde8606bb23d137aec6f1
parent12b9855339a3bbd05cc0636588ea68bf8db390f5 (diff)
Fix non-POD passing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8528 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_globalload.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index f5f63f58a..aa0aab748 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -40,7 +40,7 @@ class CommandGloadmodule : public Command
}
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());
}
}
else
@@ -74,7 +74,7 @@ class CommandGunloadmodule : public Command
}
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());
}
}
else
@@ -107,7 +107,7 @@ class CommandGreloadmodule : public Command
}
if (!ServerInstance->Modules->Load(parameters[0]))
{
- 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());
}
ServerInstance->WriteOpers("*** MODULE '%s' GLOBALLY RELOADED BY '%s'",parameters[0],user->nick);
user->WriteServ("975 %s %s :Module successfully loaded.",user->nick, parameters[0]);
@@ -149,3 +149,4 @@ class ModuleGlobalLoad : public Module
};
MODULE_INIT(ModuleGlobalLoad)
+