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/bs_main.cpp | |
parent | b59602abf85d522bb2f188be70b6cb7c9556a856 (diff) |
Added os_forbid
Diffstat (limited to 'modules/core/bs_main.cpp')
-rw-r--r-- | modules/core/bs_main.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/modules/core/bs_main.cpp b/modules/core/bs_main.cpp index 43c4d8fb2..159adde93 100644 --- a/modules/core/bs_main.cpp +++ b/modules/core/bs_main.cpp @@ -38,16 +38,9 @@ class BotServBotInfo : public BotInfo ChannelInfo *ci = cs_findchan(param); if (ci) { - if (ci->HasFlag(CI_FORBIDDEN) && !c->HasFlag(CFLAG_ALLOW_FORBIDDEN)) + if (ci->HasFlag(CI_SUSPENDED) && !c->HasFlag(CFLAG_ALLOW_SUSPENDED)) { - u->SendMessage(this, _(_(CHAN_X_FORBIDDEN)), ci->name.c_str()); - Log(LOG_COMMAND, "denied", this) << "Access denied for user " << u->GetMask() << " with command " << command << " because of FORBIDDEN channel " << ci->name; - PopLanguage(); - return; - } - else if (ci->HasFlag(CI_SUSPENDED) && !c->HasFlag(CFLAG_ALLOW_SUSPENDED)) - { - u->SendMessage(this, _(_(CHAN_X_FORBIDDEN)), ci->name.c_str()); + u->SendMessage(this, _(_(CHAN_X_SUSPENDED)), ci->name.c_str()); Log(LOG_COMMAND, "denied", this) << "Access denied for user " << u->GetMask() << " with command " << command << " because of SUSPENDED channel " << ci->name; PopLanguage(); return; |