diff options
| author | Adam <Adam@drink-coca-cola.info> | 2010-04-29 18:56:31 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-06-18 20:58:54 -0400 |
| commit | 503958aa77382a85a041e195d04b7a2ec51589e3 (patch) | |
| tree | 4dd29080a6174b101a3a29889d173b537eadaa9c /src/botserv.c | |
| parent | c1d161dec451ea790ff87078b5d80b1f71a3e9f0 (diff) | |
Prevent negaitve mode changes, kicks, bans, and autokicks from affecting users with unreal usermode +q or similar
Diffstat (limited to 'src/botserv.c')
| -rw-r--r-- | src/botserv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/botserv.c b/src/botserv.c index 05c8ea2bd..d0862c119 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -723,7 +723,7 @@ void bot_raw_ban(User * requester, ChannelInfo * ci, char *nick, const char *rea if ((ModeManager::FindUserModeByName(UMODE_PROTECTED))) { - if (is_protected(u) && (requester != u)) { + if (u->IsProtected() && (requester != u)) { ircdproto->SendPrivmsg(ci->bi, ci->name.c_str(), "%s", getstring(ACCESS_DENIED)); return; } @@ -764,7 +764,7 @@ void bot_raw_kick(User * requester, ChannelInfo * ci, char *nick, const char *re if ((ModeManager::FindUserModeByName(UMODE_PROTECTED))) { - if (is_protected(u) && (requester != u)) { + if (u->IsProtected() && (requester != u)) { ircdproto->SendPrivmsg(ci->bi, ci->name.c_str(), "%s", getstring(ACCESS_DENIED)); return; } @@ -797,7 +797,7 @@ void bot_raw_mode(User * requester, ChannelInfo * ci, const char *mode, char *ni snprintf(buf, BUFSIZE - 1, "%ld", static_cast<long>(time(NULL))); if ((ModeManager::FindUserModeByName(UMODE_PROTECTED))) { - if (is_protected(u) && *mode == '-' && (requester != u)) { + if (u->IsProtected() && *mode == '-' && (requester != u)) { ircdproto->SendPrivmsg(ci->bi, ci->name.c_str(), "%s", getstring(ACCESS_DENIED)); return; } |
