summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 14:12:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 14:12:13 +0000
commit818ead2412e2f9a3661f99d165e850ff0f49b092 (patch)
treeb8881ce90336ebffdf6a878cdba53bca7b5da5fb /include
parent704ae49baa572ecc0779be85a23c55ae2db7732e (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 'include')
-rw-r--r--include/inspircd.h4
-rw-r--r--include/users.h2
2 files changed, 4 insertions, 2 deletions
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<typename T> inline string ConvToStr(const T &in);
+
/** Holds a channel name to which a user has been invited.
*/
class Invited : public classbase