1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 02:36:38 +02:00

Allowing adding hostmasks to channel access lists

This commit is contained in:
Adam
2010-11-30 03:02:33 -05:00
parent 2a4d57a1ca
commit 0ba566491e
24 changed files with 343 additions and 338 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ class CommandCSRegister : public Command
User *u = source.u;
ChannelInfo *ci = source.ci;
Channel *c = ci->c;
Channel *c = findchan(chan);
if (readonly)
{
@@ -42,7 +42,7 @@ class CommandCSRegister : public Command
source.Reply(CHAN_SYMBOL_REQUIRED);
else if (!ircdproto->IsChannelValid(chan))
source.Reply(CHAN_X_INVALID, chan.c_str());
else if ((ci = cs_findchan(chan)))
else if (ci)
source.Reply(CHAN_ALREADY_REGISTERED, chan.c_str());
else if (c && !c->HasUserStatus(u, CMODE_OP))
source.Reply(CHAN_MUST_BE_CHANOP);