summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2007-06-18 13:37:10 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2007-06-18 13:37:10 +0000
commit813c850fa2849efdbb4a6af2f0231f8bc14c7983 (patch)
treeeaa3656ca8065b1fc40e47ea128ceaee505b2f26 /src
parente16865f8bb591a460da35570372aef16ce7d7107 (diff)
BUILD : 1.7.19 (1251) BUGS : 732 NOTES : Fixed /os MODINFO showing no
git-svn-id: svn://svn.anope.org/anope/trunk@1251 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@970 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/os_modinfo.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/core/os_modinfo.c b/src/core/os_modinfo.c
index 9d1366856..e0f5862b5 100644
--- a/src/core/os_modinfo.c
+++ b/src/core/os_modinfo.c
@@ -72,7 +72,6 @@ int do_modinfo(User * u)
char timebuf[64];
Module *m;
int idx = 0;
- int display = 0;
file = strtok(NULL, "");
if (!file) {
@@ -88,18 +87,17 @@ int do_modinfo(User * u)
m->version ? m->version : "?",
m->author ? m->author : "?", timebuf);
for (idx = 0; idx < MAX_CMD_HASH; idx++) {
- display += showModuleCmdLoaded(HOSTSERV[idx], m->name, u);
- display += showModuleCmdLoaded(OPERSERV[idx], m->name, u);
- display += showModuleCmdLoaded(NICKSERV[idx], m->name, u);
- display += showModuleCmdLoaded(CHANSERV[idx], m->name, u);
- display += showModuleCmdLoaded(BOTSERV[idx], m->name, u);
- display += showModuleCmdLoaded(MEMOSERV[idx], m->name, u);
- display += showModuleCmdLoaded(HELPSERV[idx], m->name, u);
- display += showModuleMsgLoaded(IRCD[idx], m->name, u);
+ 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);
}
- }
- if (display == 0) {
+ } else {
notice_lang(s_OperServ, u, OPER_MODULE_NO_INFO, file);
}
return MOD_CONT;