summaryrefslogtreecommitdiff
path: root/src/core/cs_forbid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cs_forbid.c')
-rw-r--r--src/core/cs_forbid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cs_forbid.c b/src/core/cs_forbid.c
index 60f4f8602..7f82c1707 100644
--- a/src/core/cs_forbid.c
+++ b/src/core/cs_forbid.c
@@ -84,7 +84,7 @@ int do_forbid(User * u)
if (*chan != '#') {
notice_lang(s_ChanServ, u, CHAN_SYMBOL_REQUIRED);
return MOD_CONT;
- } else if (anope_valid_chan(chan)) {
+ } else if (!anope_valid_chan(chan)) {
notice_lang(s_ChanServ, u, CHAN_X_INVALID, chan);
return MOD_CONT;
}