summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cull_list.h12
-rw-r--r--include/users.h12
2 files changed, 10 insertions, 14 deletions
diff --git a/include/cull_list.h b/include/cull_list.h
index eb670580e..25c4b48a5 100644
--- a/include/cull_list.h
+++ b/include/cull_list.h
@@ -115,7 +115,7 @@ class CoreExport CullList : public classbase
* See the information for CullItem for
* more information.
*/
- std::vector<CullItem *> list;
+ std::vector<User *> list;
public:
/** Constructor.
@@ -131,15 +131,7 @@ class CoreExport CullList : public classbase
* @param reason The quit reason of the user being added
* @param o_reason The quit reason to show only to opers
*/
- void AddItem(User* user, std::string &reason, const char* o_reason = "");
-
- /** Adds a user to the cull list for later
- * removal via QUIT.
- * @param user The user to add
- * @param reason The quit reason of the user being added
- * @param o_reason The quit reason to show only to opers
- */
- void AddItem(User* user, const char* reason, const char* o_reason = "");
+ void AddItem(User* user);
/* Turn an item into a silent item (don't send out QUIT for this user)
*/
diff --git a/include/users.h b/include/users.h
index c795ae1a4..9d210931c 100644
--- a/include/users.h
+++ b/include/users.h
@@ -481,10 +481,6 @@ class CoreExport User : public connection
*/
void DecrementModes();
- /** Oper-only quit message for this user if non-null
- */
- char* operquit;
-
/** Max channels for this user
*/
unsigned int MaxChans;
@@ -616,6 +612,14 @@ class CoreExport User : public connection
*/
std::string sendq;
+ /** Message user will quit with. Not to be set externally.
+ */
+ std::string quitmsg;
+
+ /** Quit message shown to opers - not to be set externally.
+ */
+ std::string operquitmsg;
+
/** Flood counters - lines received
*/
unsigned int lines_in;