diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-06 13:49:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-06 13:49:34 +0000 |
commit | b790abb1545fc22d0f6799f48d4b7df22711db8a (patch) | |
tree | 0fccc47a24f0285e89977302c5465f956cf854e9 /include/users.h | |
parent | 767fc7ad41553d8f18988d2330d99c5c89f994e4 (diff) |
This properly fixes options:hidebans and options:hidesplits by providing the facility to have two different quit messages for a user, one an oper sees and one a normal user sees.
There are default values on the oper_quit parameters through the entire source so that if oper_quit parameter is not given it defaults to the same as the user_quit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6630 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r-- | include/users.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/users.h b/include/users.h index d6d6fe0ab..8da80d62f 100644 --- a/include/users.h +++ b/include/users.h @@ -669,10 +669,11 @@ class userrec : public connection /** Disconnect a user gracefully * @param user The user to remove - * @param r The quit reason + * @param r The quit reason to show to normal users + * @param oreason The quit reason to show to opers * @return Although this function has no return type, on exit the user provided will no longer exist. */ - static void QuitUser(InspIRCd* Instance, userrec *user, const std::string &r); + static void QuitUser(InspIRCd* Instance, userrec *user, const std::string &r, const char* oreason = ""); /** Add the user to WHOWAS system */ @@ -803,6 +804,8 @@ class userrec : public connection */ void WriteCommonExcept(const std::string &text); + void WriteCommonQuit(const std::string &normal_text, const std::string &oper_text); + /** Write a WALLOPS message from this user to all local opers. * If this user is not opered, the function will return without doing anything. * @param text The format string to send in the WALLOPS message |