From 503958aa77382a85a041e195d04b7a2ec51589e3 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 29 Apr 2010 18:56:31 -0400 Subject: Prevent negaitve mode changes, kicks, bans, and autokicks from affecting users with unreal usermode +q or similar --- include/extern.h | 1 - include/users.h | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/extern.h b/include/extern.h index 79f1702f9..c8382db8e 100644 --- a/include/extern.h +++ b/include/extern.h @@ -526,7 +526,6 @@ E void do_quit(const char *source, int ac, const char **av); E void do_kill(const std::string &source, const std::string &reason); E int is_oper(User * user); -E int is_protected(User * user); E int is_excepted(ChannelInfo * ci, User * user); E int is_excepted_mask(ChannelInfo * ci, const char *mask); diff --git a/include/users.h b/include/users.h index d94dca9bd..b11c17875 100644 --- a/include/users.h +++ b/include/users.h @@ -258,5 +258,10 @@ class CoreExport User : public Extensible * @return The channel container, or NULL */ ChannelContainer *FindChannel(Channel *c); + + /** Check if the user is protected from kicks and negative mode changes + * @return true or false + */ + bool IsProtected() const; }; -- cgit