diff options
author | Adam <Adam@anope.org> | 2011-05-06 18:02:53 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-05-16 04:10:18 -0400 |
commit | fd4b52ec385167794eaadb18ee635bef757728ee (patch) | |
tree | 49d3e835b072a10887309d8d9155982a5aa61ed0 /modules/core/cs_drop.cpp | |
parent | b59602abf85d522bb2f188be70b6cb7c9556a856 (diff) |
Added os_forbid
Diffstat (limited to 'modules/core/cs_drop.cpp')
-rw-r--r-- | modules/core/cs_drop.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/modules/core/cs_drop.cpp b/modules/core/cs_drop.cpp index 3a1026f21..a13006196 100644 --- a/modules/core/cs_drop.cpp +++ b/modules/core/cs_drop.cpp @@ -19,7 +19,6 @@ class CommandCSDrop : public Command public: CommandCSDrop() : Command("DROP", 1, 1) { - this->SetFlag(CFLAG_ALLOW_FORBIDDEN); this->SetFlag(CFLAG_ALLOW_SUSPENDED); this->SetDesc(_("Cancel the registration of a channel")); } @@ -39,15 +38,9 @@ class CommandCSDrop : public Command ci = cs_findchan(chan); - if (ci->HasFlag(CI_FORBIDDEN) && !u->HasCommand("chanserv/drop")) - { - source.Reply(_(CHAN_X_FORBIDDEN), chan.c_str()); - return MOD_CONT; - } - if (ci->HasFlag(CI_SUSPENDED) && !u->HasCommand("chanserv/drop")) { - source.Reply(_(CHAN_X_FORBIDDEN), chan.c_str()); + source.Reply(_(CHAN_X_SUSPENDED), chan.c_str()); return MOD_CONT; } @@ -60,12 +53,6 @@ class CommandCSDrop : public Command if (ci->c && ModeManager::FindChannelModeByName(CMODE_REGISTERED)) ci->c->RemoveMode(NULL, CMODE_REGISTERED, "", false); - if (ircd->chansqline && ci->HasFlag(CI_FORBIDDEN)) - { - XLine x(ci->name); - ircdproto->SendSQLineDel(&x); - } - bool override = (ci->HasFlag(CI_SECUREFOUNDER) ? !IsFounder(u, ci) : !check_access(u, ci, CA_FOUNDER)); Log(override ? LOG_OVERRIDE : LOG_COMMAND, u, this, ci) << "founder: " << (ci->founder ? ci->founder->display : "none"); |