diff options
author | Adam <Adam@anope.org> | 2012-12-12 01:33:58 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-12-12 01:33:58 -0500 |
commit | 1c1a216df1615f6834cfb41e739d8ccac88df3f4 (patch) | |
tree | d81b5bf272f423120f2975c631f53f4b8ad38618 | |
parent | 04f96a54b8387c1362e6695a13dd0dd71ce0a347 (diff) |
Only allow non-user sources to register nonexistant channels
-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)) |