diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/cull_list.h | 2 | ||||
-rw-r--r-- | include/users.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/cull_list.h b/include/cull_list.h index e20eb1dd0..ca7189f4c 100644 --- a/include/cull_list.h +++ b/include/cull_list.h @@ -51,6 +51,7 @@ class CullItem * @param r The quit reason of the added user */ CullItem(userrec* u, std::string &r); + CullItem(userrec* u, const char* r); /** Returns a pointer to the user */ userrec* GetUser(); @@ -105,6 +106,7 @@ class CullList * @param reason The quit reason of the user being added */ void AddItem(userrec* user, std::string &reason); + void AddItem(userrec* user, const char* reason); /** Applies the cull list, quitting all the users * on the list with their quit reasons all at once. * This is a very fast operation compared to diff --git a/include/users.h b/include/users.h index e7ad4b9d9..073ba3624 100644 --- a/include/users.h +++ b/include/users.h @@ -311,7 +311,7 @@ class userrec : public connection /** Returns the write error which last occured on this connection or an empty string * if none occured. */ - std::string GetWriteError(); + const char* GetWriteError(); /** Adds to the user's write buffer. * You may add any amount of text up to this users sendq value, if you exceed the |