summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commands.c b/src/commands.c
index 344805f9a..7fe9f829b 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -144,6 +144,11 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *
return;
}
}
+ else if (!c->HasFlag(CFLAG_ALLOW_UNREGISTEREDCHANNEL))
+ {
+ notice_lang(service, u, CHAN_X_NOT_REGISTERED, params[0].c_str());
+ return;
+ }
}
// If the command requires a permission, and they aren't registered or don't have the required perm, DENIED