From 818ead2412e2f9a3661f99d165e850ff0f49b092 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 15 Dec 2005 14:12:13 +0000 Subject: Tidied up call_handler to use strings git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2476 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 4 ++-- include/users.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/inspircd.h b/include/inspircd.h index fa8f1e886..34ad92cb3 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -115,8 +115,8 @@ class InspIRCd /* prototypes */ void force_nickchange(userrec* user,const char* newnick); -void call_handler(const char* commandname,char **parameters, int pcnt, userrec *user); -bool is_valid_cmd(const char* commandname, int pcnt, userrec * user); +void call_handler(std::string &commandname,char **parameters, int pcnt, userrec *user); +bool is_valid_cmd(std::string &commandname, int pcnt, userrec * user); int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins); userrec* ReHashNick(char* Old, char* New); /* userrec optimization stuff */ diff --git a/include/users.h b/include/users.h index 9d0dabe74..ee15f4845 100644 --- a/include/users.h +++ b/include/users.h @@ -36,6 +36,8 @@ #define CC_ALLOW 0 #define CC_DENY 1 +template inline string ConvToStr(const T &in); + /** Holds a channel name to which a user has been invited. */ class Invited : public classbase -- cgit v1.2.3