diff options
-rw-r--r-- | modules/commands/cs_register.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/commands/cs_register.cpp b/modules/commands/cs_register.cpp index e756482c7..d1ada3c19 100644 --- a/modules/commands/cs_register.cpp +++ b/modules/commands/cs_register.cpp @@ -42,6 +42,8 @@ class CommandCSRegister : public Command source.Reply(CHAN_SYMBOL_REQUIRED); else if (!IRCD->IsChannelValid(chan)) source.Reply(CHAN_X_INVALID, chan.c_str()); + else if (!c && u) + source.Reply(CHAN_X_NOT_IN_USE, chan.c_str()); else if (ci) source.Reply(_("Channel \002%s\002 is already registered!"), chan.c_str()); else if (c && !c->HasUserStatus(u, CMODE_OP)) |