summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 15:46:25 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 15:46:25 +0000
commitdde05e96cff5b0c5d5587265e03b31c585f53424 (patch)
tree8f13e765a2ace3188c4b9d05b0d6ee20e6ab1499 /src/core
parent73f4cccf99f7c7c8c0fdd9a590b5d947b0fe3d5a (diff)
Remove Message::mod_name, modules cannot own ircd messages any more (this means everything at protocol level is handled *at protocol level only*, which is good). Also merge callback stuff in with Module class, removing more mod_current_ usage.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1696 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/os_modinfo.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/core/os_modinfo.c b/src/core/os_modinfo.c
index 485ba89bb..93100c3f1 100644
--- a/src/core/os_modinfo.c
+++ b/src/core/os_modinfo.c
@@ -17,7 +17,6 @@
int do_modinfo(User * u);
void myOperServHelp(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
@@ -81,8 +80,6 @@ int do_modinfo(User * 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 {
notice_lang(s_OperServ, u, OPER_MODULE_NO_INFO, file);
@@ -108,21 +105,4 @@ int showModuleCmdLoaded(CommandHash * cmdList, const char *mod_name, User * u)
return display;
}
-int showModuleMsgLoaded(MessageHash * msgList, const char *mod_name, User * u)
-{
- Message *msg;
- MessageHash *mcurrent;
- int display = 0;
- for (mcurrent = msgList; mcurrent; mcurrent = mcurrent->next) {
- for (msg = mcurrent->m; msg; msg = msg->next) {
- if ((msg->mod_name) && (stricmp(msg->mod_name, mod_name) == 0)) {
- notice_lang(s_OperServ, u, OPER_MODULE_MSG_LIST,
- msg->name);
- display++;
- }
- }
- }
- return display;
-}
-
MODULE_INIT("os_modinfo", OSModInfo)