summaryrefslogtreecommitdiff
path: root/src/core/ms_del.c
diff options
context:
space:
mode:
authoradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-23 16:56:38 +0000
committeradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-23 16:56:38 +0000
commitdc8f7923f4c9cd685a338072bcc2bb351bf575d9 (patch)
treecb55529a96b40d43b2646640a06cc248efa76efb /src/core/ms_del.c
parent59c1a509b4264648a6ef61e96b85f06f735d6dd6 (diff)
Adds check for using commands on non-registered channels before the
commands are called git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2336 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ms_del.c')
-rw-r--r--src/core/ms_del.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/ms_del.c b/src/core/ms_del.c
index e73404f46..f5f0a231d 100644
--- a/src/core/ms_del.c
+++ b/src/core/ms_del.c
@@ -37,12 +37,8 @@ class CommandMSDel : public Command
{
chan = numstr;
numstr = params.size() > 1 ? params[1].c_str() : NULL;
- if (!(ci = cs_findchan(chan)))
- {
- notice_lang(s_MemoServ, u, CHAN_X_NOT_REGISTERED, chan);
- return MOD_CONT;
- }
- else if (readonly)
+ ci = cs_findchan(chan);
+ if (readonly)
{
notice_lang(s_MemoServ, u, READ_ONLY_MODE);
return MOD_CONT;