diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 20:16:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 20:16:43 +0000 |
commit | 0cf08426b2ff53d6fc1ca8125a57c79d87070b7b (patch) | |
tree | 36e30bdb829460fa63c9875e60b9d988b60d0747 /include | |
parent | 7a3d08f06cc22688a70c5274fe0dd489f93e9794 (diff) |
Speedups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3602 e03df62e-2008-0410-955e-edbf42e46eb7
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 |