summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/message.h2
-rw-r--r--src/message.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/message.h b/include/message.h
index fb0e7cb64..8741b8293 100644
--- a/include/message.h
+++ b/include/message.h
@@ -40,7 +40,7 @@ void ChangeName(userrec* user, const char* gecos);
void ChangeDisplayedHost(userrec* user, const char* host);
int isident(const char* n);
int isnick(const char* n);
-char* cmode(userrec *user, chanrec *chan);
+const char* cmode(userrec *user, chanrec *chan);
int cstatus(userrec *user, chanrec *chan);
int has_channel(userrec *u, chanrec *c);
void TidyBan(char *ban);
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))
{