From 0757a4a495daabf661ac3b7ab79f0a5ee423abe8 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 16 Jul 2006 12:18:29 +0000 Subject: mass tidyup, change A LOT of stuff to const char** which was char** (such as parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_notice.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/cmd_notice.cpp') diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp index 5c745f74a..434594df9 100644 --- a/src/cmd_notice.cpp +++ b/src/cmd_notice.cpp @@ -36,7 +36,7 @@ extern std::vector modules; extern std::vector factory; extern time_t TIME; -void cmd_notice::Handle (char **parameters, int pcnt, userrec *user) +void cmd_notice::Handle (const char** parameters, int pcnt, userrec *user) { userrec *dest; chanrec *chan; @@ -48,8 +48,7 @@ void cmd_notice::Handle (char **parameters, int pcnt, userrec *user) if ((parameters[0][0] == '$') && ((*user->oper) || (is_uline(user->server)))) { // notice to server mask - char* servermask = parameters[0]; - servermask++; + const char* servermask = parameters[0] + 1; if (match(Config->ServerName,servermask)) { NoticeAll(user, true, "%s",parameters[1]); -- cgit v1.2.3