From df0e2ac4de7fddeb01477659d262e86bce6f9228 Mon Sep 17 00:00:00 2001 From: stskeeps Date: Thu, 14 Jun 2007 17:29:36 +0000 Subject: [PATCH] #0003368 patched by Stealth giving users access to do /module on remote servers --- Changes | 2 ++ src/modules.c | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Changes b/Changes index a67d2ff4c..f62025ef9 100644 --- a/Changes +++ b/Changes @@ -1471,3 +1471,5 @@ - help.conf updates. Missing some ;'s. - #0003027 reported by Trocotronic, regarding doing -l on SJOIN, and not -l as supposed. This may have caused desyncs +- #0003368 patched by Stealth giving users access to do /module on remote + servers diff --git a/src/modules.c b/src/modules.c index e263be270..e65e4472e 100644 --- a/src/modules.c +++ b/src/modules.c @@ -1030,10 +1030,9 @@ int m_module(aClient *cptr, aClient *sptr, int parc, char *parv[]) #endif /* Opers can do /module */ - if ((parc > 1) && (IsServer(cptr) || IsOper(sptr)) && - (hunt_server_token(cptr, sptr, MSG_MODULE, TOK_MODULE, ":%s", 1, parc, parv) != HUNTED_ISME)) - return 0; - + if ((parc > 1) && (hunt_server_token(cptr, sptr, MSG_MODULE, TOK_MODULE, ":%s", 1, parc, + parv) != HUNTED_ISME)) + return 0; if (!Modules) { sendto_one(sptr, ":%s NOTICE %s :*** No modules loaded", me.name, sptr->name);