summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authoradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-06 07:27:16 +0000
committeradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-06 07:27:16 +0000
commitd75238496b4ba31d9b348f54c9d34c7ac2beb020 (patch)
treefdd1fa34dae1873bb8207c45c1c4a532f3d9b545 /src/commands.c
parent4d19a783bd0dc0c6ed904850c7090e56df774655 (diff)
Made pre-command channel sanity checks only apply to ChanServ and BotServ. Its not needed elsewhere and just causes issues
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2361 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.c b/src/commands.c
index 034725b31..e9071141c 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -125,7 +125,7 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *
if (MOD_RESULT == EVENT_STOP)
return;
- if (params.size() > 0)
+ if (params.size() > 0 && !c->HasFlag(CFLAG_STRIP_CHANNEL) && (cmdTable == CHANSERV || cmdTable == BOTSERV))
{
if (ircdproto->IsChannelValid(params[0].c_str()))
{
@@ -153,7 +153,7 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *
}
}
/* A user not giving a channel name for a param that should be a channel */
- else if ((cmdTable == CHANSERV || cmdTable == BOTSERV) && !c->HasFlag(CFLAG_STRIP_CHANNEL))
+ else
{
notice_lang(service, u, CHAN_X_INVALID, params[0].c_str());
return;