summaryrefslogtreecommitdiff
path: root/src/core/os_modinfo.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 00:21:29 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 00:21:29 +0000
commitb8c04482bbbe531e48bb1328d17db8acb1e323a0 (patch)
tree3a56e0f1771d9aa249215c18a2de17b4e2e60189 /src/core/os_modinfo.c
parente459e5833e10f3de02168ff99f10b28090d90aac (diff)
This compiles. I have absolutely no idea if it works.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1579 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/os_modinfo.c')
-rw-r--r--src/core/os_modinfo.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/core/os_modinfo.c b/src/core/os_modinfo.c
index 6764bd837..80cf9ea1c 100644
--- a/src/core/os_modinfo.c
+++ b/src/core/os_modinfo.c
@@ -17,8 +17,8 @@
int do_modinfo(User * u);
void myOperServHelp(User * u);
-int showModuleMsgLoaded(MessageHash * msgList, char *mod_name, User * u);
-int showModuleCmdLoaded(CommandHash * cmdList, char *mod_name, User * u);
+int showModuleMsgLoaded(MessageHash * msgList, const char *mod_name, User * u);
+int showModuleCmdLoaded(CommandHash * cmdList, const char *mod_name, User * u);
class OSModInfo : public Module
{
@@ -70,18 +70,18 @@ int do_modinfo(User * u)
tm = *localtime(&m->time);
strftime_lang(timebuf, sizeof(timebuf), u,
STRFTIME_DATE_TIME_FORMAT, &tm);
- notice_lang(s_OperServ, u, OPER_MODULE_INFO_LIST, m->name,
+ notice_lang(s_OperServ, u, OPER_MODULE_INFO_LIST, m->name.c_str(),
m->version ? m->version : "?",
m->author ? m->author : "?", timebuf);
for (idx = 0; idx < MAX_CMD_HASH; idx++) {
- showModuleCmdLoaded(HOSTSERV[idx], m->name, u);
- showModuleCmdLoaded(OPERSERV[idx], m->name, u);
- showModuleCmdLoaded(NICKSERV[idx], m->name, u);
- showModuleCmdLoaded(CHANSERV[idx], m->name, u);
- showModuleCmdLoaded(BOTSERV[idx], m->name, u);
- showModuleCmdLoaded(MEMOSERV[idx], m->name, u);
- showModuleCmdLoaded(HELPSERV[idx], m->name, u);
- showModuleMsgLoaded(IRCD[idx], m->name, u);
+ showModuleCmdLoaded(HOSTSERV[idx], m->name.c_str(), u);
+ showModuleCmdLoaded(OPERSERV[idx], m->name.c_str(), u);
+ showModuleCmdLoaded(NICKSERV[idx], m->name.c_str(), u);
+ showModuleCmdLoaded(CHANSERV[idx], m->name.c_str(), u);
+ showModuleCmdLoaded(BOTSERV[idx], m->name.c_str(), u);
+ showModuleCmdLoaded(MEMOSERV[idx], m->name.c_str(), u);
+ showModuleCmdLoaded(HELPSERV[idx], m->name.c_str(), u);
+ showModuleMsgLoaded(IRCD[idx], m->name.c_str(), u);
}
} else {
@@ -90,7 +90,7 @@ int do_modinfo(User * u)
return MOD_CONT;
}
-int showModuleCmdLoaded(CommandHash * cmdList, char *mod_name, User * u)
+int showModuleCmdLoaded(CommandHash * cmdList, const char *mod_name, User * u)
{
Command *c;
CommandHash *current;
@@ -108,7 +108,7 @@ int showModuleCmdLoaded(CommandHash * cmdList, char *mod_name, User * u)
return display;
}
-int showModuleMsgLoaded(MessageHash * msgList, char *mod_name, User * u)
+int showModuleMsgLoaded(MessageHash * msgList, const char *mod_name, User * u)
{
Message *msg;
MessageHash *mcurrent;