summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@drink-coca-cola.info>2010-04-29 18:56:31 -0400
committerAdam <Adam@anope.org>2010-06-18 20:58:54 -0400
commit503958aa77382a85a041e195d04b7a2ec51589e3 (patch)
tree4dd29080a6174b101a3a29889d173b537eadaa9c /include
parentc1d161dec451ea790ff87078b5d80b1f71a3e9f0 (diff)
Prevent negaitve mode changes, kicks, bans, and autokicks from affecting users with unreal usermode +q or similar
Diffstat (limited to 'include')
-rw-r--r--include/extern.h1
-rw-r--r--include/users.h5
2 files changed, 5 insertions, 1 deletions
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;
};