diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 14:12:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 14:12:13 +0000 |
commit | 818ead2412e2f9a3661f99d165e850ff0f49b092 (patch) | |
tree | b8881ce90336ebffdf6a878cdba53bca7b5da5fb /src/users.cpp | |
parent | 704ae49baa572ecc0779be85a23c55ae2db7732e (diff) |
Tidied up call_handler to use strings
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2476 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index f73aa7a15..8e5d996da 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -30,11 +30,15 @@ using namespace std; #include "commands.h" #include "helperfuncs.h" #include "typedefs.h" +#include "socketengine.h" #include "hashcomp.h" +#include "message.h" +#include "wildcard.h" +#include "xline.h" extern InspIRCd* ServerInstance; -extern int WHOWAS_STALE = 48; // default WHOWAS Entries last 2 days before they go 'stale' -extern int WHOWAS_MAX = 100; // default 100 people maximum in the WHOWAS list +extern int WHOWAS_STALE; +extern int WHOWAS_MAX; extern std::vector<Module*> modules; extern std::vector<ircd_module*> factory; extern std::vector<InspSocket*> module_sockets; @@ -50,6 +54,13 @@ extern whowas_hash whowas; std::vector<userrec*> all_opers; +template<typename T> inline string ConvToStr(const T &in) +{ + stringstream tmp; + if (!(tmp << in)) return string(); + return tmp.str(); +} + userrec::userrec() { // the PROPER way to do it, AVOID bzero at *ALL* costs |