diff options
author | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-23 16:56:38 +0000 |
---|---|---|
committer | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-23 16:56:38 +0000 |
commit | dc8f7923f4c9cd685a338072bcc2bb351bf575d9 (patch) | |
tree | cb55529a96b40d43b2646640a06cc248efa76efb /src/core/cs_info.c | |
parent | 59c1a509b4264648a6ef61e96b85f06f735d6dd6 (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/cs_info.c')
-rw-r--r-- | src/core/cs_info.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/cs_info.c b/src/core/cs_info.c index f4f2b5b17..8778d002e 100644 --- a/src/core/cs_info.c +++ b/src/core/cs_info.c @@ -48,11 +48,7 @@ class CommandCSInfo : public Command int show_all = 0; time_t expt; - if (!(ci = cs_findchan(chan))) - { - notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, chan); - return MOD_CONT; - } + ci = cs_findchan(chan); if (ci->flags & CI_FORBIDDEN) { |