From 689c27adfd88e0af0524c93d8eff4c44f034cff1 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 8 Mar 2006 21:16:05 +0000 Subject: cmode now returns const char* as it returns a pointer to a literal string and shouldnt be messed with git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3557 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/message.cpp b/src/message.cpp index 3d98c500a..9cfecb850 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -280,7 +280,7 @@ int isnick(const char* n) * % for halfop etc. If the user has several modes set, the highest mode * the user has must be returned. */ -char* cmode(userrec *user, chanrec *chan) +const char* cmode(userrec *user, chanrec *chan) { if ((!user) || (!chan)) { -- cgit v1.2.3