diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-10 12:13:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-10 12:13:19 +0000 |
commit | 57f498f8045c9ca010b09b860fe7c5a9ef9cf8c4 (patch) | |
tree | e7965fb7d5abf4794e0bbd4d37e73ea3572bcf38 /include/cull_list.h | |
parent | 1acda32c6a39372b72c18b04d976eb07f4bee676 (diff) |
Faster CullItem/CullList using strdup rather than copying a std::string
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3626 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/cull_list.h')
-rw-r--r-- | include/cull_list.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/cull_list.h b/include/cull_list.h index ca7189f4c..df91e2eca 100644 --- a/include/cull_list.h +++ b/include/cull_list.h @@ -42,7 +42,7 @@ class CullItem userrec* user; /** Holds the quit reason to use for this user. */ - std::string reason; + char* reason; public: /** Constrcutor. * Initializes the CullItem with a user pointer @@ -52,12 +52,15 @@ class CullItem */ CullItem(userrec* u, std::string &r); CullItem(userrec* u, const char* r); + + ~CullItem(); + /** Returns a pointer to the user */ userrec* GetUser(); /** Returns the user's quit reason */ - std::string GetReason(); + const char* GetReason(); }; /** The CullList class can be used by modules, and is used |