diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/extern.h | 1 | ||||
| -rw-r--r-- | include/users.h | 5 |
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; }; |
