summaryrefslogtreecommitdiff
path: root/src/protocol/plexus3.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
commitc32c3c99a1e1d395c88e901de200c21b9ca1e84f (patch)
treee272e1dc395df2947314ff24f0f9ce12b94f8f53 /src/protocol/plexus3.c
parent431918ceacfd5a580d4f28a8ae6077c9bbc44b99 (diff)
Made all protocol modules able to be compiled via mostly constifying strings.
Due to the above, also had to constify strings in many other areas. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1202 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/plexus3.c')
-rw-r--r--src/protocol/plexus3.c218
1 files changed, 109 insertions, 109 deletions
diff --git a/src/protocol/plexus3.c b/src/protocol/plexus3.c
index 242f8e5ed..a376e11c7 100644
--- a/src/protocol/plexus3.c
+++ b/src/protocol/plexus3.c
@@ -145,10 +145,10 @@ IRCDCAPAB myIrcdcap[] = {
void
-plexus_set_umode (User * user, int ac, char **av)
+plexus_set_umode (User * user, int ac, const char **av)
{
int add = 1; /* 1 if adding modes, 0 if deleting */
- char *modes = av[0];
+ const char *modes = av[0];
ac--;
@@ -476,7 +476,7 @@ CUMode myCumodes[128] = {
void
-plexus_cmd_notice (char *source, char *dest, char *buf)
+plexus_cmd_notice (const char *source, const char *dest, const char *buf)
{
if (!buf)
{
@@ -494,13 +494,13 @@ plexus_cmd_notice (char *source, char *dest, char *buf)
}
void
-plexus_cmd_notice2 (char *source, char *dest, char *msg)
+plexus_cmd_notice2 (const char *source, const char *dest, const char *msg)
{
send_cmd (source, "NOTICE %s :%s", dest, msg);
}
void
-plexus_cmd_privmsg (char *source, char *dest, char *buf)
+plexus_cmd_privmsg (const char *source, const char *dest, const char *buf)
{
if (!buf)
{
@@ -511,26 +511,26 @@ plexus_cmd_privmsg (char *source, char *dest, char *buf)
}
void
-plexus_cmd_privmsg2 (char *source, char *dest, char *msg)
+plexus_cmd_privmsg2 (const char *source, const char *dest, const char *msg)
{
send_cmd (source, "PRIVMSG %s :%s", dest, msg);
}
void
-plexus_cmd_serv_notice (char *source, char *dest, char *msg)
+plexus_cmd_serv_notice (const char *source, const char *dest, const char *msg)
{
send_cmd (source, "NOTICE $$%s :%s", dest, msg);
}
void
-plexus_cmd_serv_privmsg (char *source, char *dest, char *msg)
+plexus_cmd_serv_privmsg (const char *source, const char *dest, const char *msg)
{
send_cmd (source, "PRIVMSG $$%s :%s", dest, msg);
}
void
-plexus_cmd_global (char *source, char *buf)
+plexus_cmd_global (const char *source, const char *buf)
{
if (!buf)
{
@@ -542,20 +542,20 @@ plexus_cmd_global (char *source, char *buf)
/* GLOBOPS - to handle old WALLOPS */
void
-plexus_cmd_global_legacy (char *source, char *fmt)
+plexus_cmd_global_legacy (const char *source, const char *fmt)
{
send_cmd (source ? source : ServerName, "OPERWALL :%s", fmt);
}
int
-anope_event_sjoin (char *source, int ac, char **av)
+anope_event_sjoin (const char *source, int ac, const char **av)
{
do_sjoin (source, ac, av);
return MOD_CONT;
}
int
-anope_event_nick (char *source, int ac, char **av)
+anope_event_nick (const char *source, int ac, const char **av)
{
if (ac != 2)
{
@@ -574,7 +574,7 @@ anope_event_nick (char *source, int ac, char **av)
}
int
-anope_event_topic (char *source, int ac, char **av)
+anope_event_topic (const char *source, int ac, const char **av)
{
if (ac == 4)
{
@@ -621,7 +621,7 @@ anope_event_topic (char *source, int ac, char **av)
}
int
-anope_event_tburst (char *source, int ac, char **av)
+anope_event_tburst (const char *source, int ac, const char **av)
{
if (ac != 5)
return MOD_CONT;
@@ -640,7 +640,7 @@ anope_event_tburst (char *source, int ac, char **av)
* av[2] and beyond are dynamic.
*/
int
-anope_event_encap (char *source, int ac, char **av)
+anope_event_encap (const char *source, int ac, const char **av)
{
if (ac < 2)
return MOD_CONT;
@@ -662,14 +662,14 @@ anope_event_encap (char *source, int ac, char **av)
return MOD_CONT;
}
- change_user_host (u, av[3]);
+ u->SetDisplayedHost(av[3]);
return MOD_CONT;
}
return MOD_CONT;
}
int
-anope_event_436 (char *source, int ac, char **av)
+anope_event_436 (const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
@@ -753,25 +753,25 @@ moduleAddIRCDMsgs (void)
}
void
-plexus_cmd_sqline (char *mask, char *reason)
+plexus_cmd_sqline (const char *mask, const char *reason)
{
send_cmd (s_OperServ, "RESV * %s :%s", mask, reason);
}
void
-plexus_cmd_unsgline (char *mask)
+plexus_cmd_unsgline (const char *mask)
{
send_cmd (s_OperServ, "UNXLINE * %s", mask);
}
void
-plexus_cmd_unszline (char *mask)
+plexus_cmd_unszline (const char *mask)
{
/* Does not support */
}
void
-plexus_cmd_szline (char *mask, char *reason, char *whom)
+plexus_cmd_szline (const char *mask, const char *reason, const char *whom)
{
/* Does not support */
}
@@ -782,13 +782,13 @@ void PleXusIRCdProto::cmd_svsnoop(const char *server, int set)
}
void
-plexus_cmd_svsadmin (char *server, int set)
+plexus_cmd_svsadmin (const char *server, int set)
{
ircd_proto.cmd_svsnoop(server, set);
}
void
-plexus_cmd_sgline (char *mask, char *reason)
+plexus_cmd_sgline (const char *mask, const char *reason)
{
send_cmd (s_OperServ, "XLINE * %s 0 :%s", mask, reason);
}
@@ -799,8 +799,8 @@ void PleXusIRCdProto::cmd_remove_akill(const char *user, const char *host)
}
void
-plexus_cmd_topic (char *whosets, char *chan, char *whosetit,
- char *topic, time_t when)
+plexus_cmd_topic (const char *whosets, const char *chan, const char *whosetit,
+ const char *topic, time_t when)
{
send_cmd (whosets, "ENCAP * TOPIC %s %s %lu :%s", chan, whosetit,
(unsigned long int) when, topic);
@@ -813,7 +813,7 @@ plexus_cmd_vhost_off (User * u)
}
void
-plexus_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
+plexus_cmd_vhost_on (const char *nick, const char *vIdent, const char *vhost)
{
User *u;
@@ -833,13 +833,13 @@ plexus_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
}
void
-plexus_cmd_unsqline (char *user)
+plexus_cmd_unsqline (const char *user)
{
send_cmd (s_OperServ, "UNRESV * %s", user);
}
void
-plexus_cmd_join (char *user, char *channel, time_t chantime)
+plexus_cmd_join (const char *user, const char *channel, time_t chantime)
{
send_cmd (ServerName, "SJOIN %ld %s + :%s", (long int) chantime, channel,
user);
@@ -855,15 +855,15 @@ reason: the reason for the kline.
*/
void
-plexus_cmd_akill (char *user, char *host, char *who, time_t when,
- time_t expires, char *reason)
+plexus_cmd_akill (const char *user, const char *host, const char *who, time_t when,
+ time_t expires, const char *reason)
{
send_cmd (s_OperServ, "KLINE * %ld %s %s :%s",
(long int) (expires - (long) time (NULL)), user, host, reason);
}
void
-plexus_cmd_svskill (char *source, char *user, char *buf)
+plexus_cmd_svskill (const char *source, const char *user, const char *buf)
{
if (!buf)
{
@@ -879,7 +879,7 @@ plexus_cmd_svskill (char *source, char *user, char *buf)
}
void
-plexus_cmd_svsmode (User * u, int ac, char **av)
+plexus_cmd_svsmode (User * u, int ac, const char **av)
{
send_cmd (ServerName, "ENCAP * SVSMODE %s %ld %s%s%s", u->nick,
(long int) u->timestamp, av[0], (ac == 2 ? " " : ""),
@@ -931,14 +931,14 @@ plexus_cmd_capab ()
/* PASS */
void
-plexus_cmd_pass (char *pass)
+plexus_cmd_pass (const char *pass)
{
send_cmd (NULL, "PASS %s :TS", pass);
}
/* SERVER name hop descript */
void
-plexus_cmd_server (char *servname, int hop, char *descript)
+plexus_cmd_server (const char *servname, int hop, const char *descript)
{
send_cmd (NULL, "SERVER %s %d :%s", servname, hop, descript);
}
@@ -969,8 +969,8 @@ plexus_cmd_svsinfo ()
void
-plexus_cmd_bot_nick (char *nick, char *user, char *host, char *real,
- char *modes)
+plexus_cmd_bot_nick (const char *nick, const char *user, const char *host, const char *real,
+ const char *modes)
{
EnforceQlinedNick (nick, NULL);
send_cmd (ServerName, "NICK %s 1 %ld %s %s %s %s 0 %s :%s", nick,
@@ -981,7 +981,7 @@ plexus_cmd_bot_nick (char *nick, char *user, char *host, char *real,
}
void
-plexus_cmd_part (char *nick, char *chan, char *buf)
+plexus_cmd_part (const char *nick, const char *chan, const char *buf)
{
if (buf)
{
@@ -994,7 +994,7 @@ plexus_cmd_part (char *nick, char *chan, char *buf)
}
int
-anope_event_ping (char *source, int ac, char **av)
+anope_event_ping (const char *source, int ac, const char **av)
{
if (ac < 1)
return MOD_CONT;
@@ -1003,7 +1003,7 @@ anope_event_ping (char *source, int ac, char **av)
}
int
-anope_event_away (char *source, int ac, char **av)
+anope_event_away (const char *source, int ac, const char **av)
{
if (!source)
{
@@ -1014,7 +1014,7 @@ anope_event_away (char *source, int ac, char **av)
}
int
-anope_event_kill (char *source, int ac, char **av)
+anope_event_kill (const char *source, int ac, const char **av)
{
if (ac != 2)
return MOD_CONT;
@@ -1024,7 +1024,7 @@ anope_event_kill (char *source, int ac, char **av)
}
int
-anope_event_kick (char *source, int ac, char **av)
+anope_event_kick (const char *source, int ac, const char **av)
{
if (ac != 3)
return MOD_CONT;
@@ -1033,7 +1033,7 @@ anope_event_kick (char *source, int ac, char **av)
}
int
-anope_event_eob (char *source, int ac, char **av)
+anope_event_eob (const char *source, int ac, const char **av)
{
Server *s;
s = findserver (servlist, source);
@@ -1056,7 +1056,7 @@ plexus_cmd_eob ()
int
-anope_event_join (char *source, int ac, char **av)
+anope_event_join (const char *source, int ac, const char **av)
{
if (ac != 1)
return MOD_CONT;
@@ -1065,7 +1065,7 @@ anope_event_join (char *source, int ac, char **av)
}
int
-anope_event_motd (char *source, int ac, char **av)
+anope_event_motd (const char *source, int ac, const char **av)
{
if (!source)
{
@@ -1077,7 +1077,7 @@ anope_event_motd (char *source, int ac, char **av)
}
int
-anope_event_privmsg (char *source, int ac, char **av)
+anope_event_privmsg (const char *source, int ac, const char **av)
{
if (ac != 2)
return MOD_CONT;
@@ -1086,7 +1086,7 @@ anope_event_privmsg (char *source, int ac, char **av)
}
int
-anope_event_part (char *source, int ac, char **av)
+anope_event_part (const char *source, int ac, const char **av)
{
if (ac < 1 || ac > 2)
return MOD_CONT;
@@ -1095,7 +1095,7 @@ anope_event_part (char *source, int ac, char **av)
}
int
-anope_event_whois (char *source, int ac, char **av)
+anope_event_whois (const char *source, int ac, const char **av)
{
if (source && ac >= 1)
{
@@ -1106,7 +1106,7 @@ anope_event_whois (char *source, int ac, char **av)
/* EVENT: SERVER */
int
-anope_event_server (char *source, int ac, char **av)
+anope_event_server (const char *source, int ac, const char **av)
{
if (!stricmp (av[1], "1"))
{
@@ -1117,7 +1117,7 @@ anope_event_server (char *source, int ac, char **av)
}
int
-anope_event_squit (char *source, int ac, char **av)
+anope_event_squit (const char *source, int ac, const char **av)
{
if (ac != 2)
return MOD_CONT;
@@ -1126,7 +1126,7 @@ anope_event_squit (char *source, int ac, char **av)
}
int
-anope_event_quit (char *source, int ac, char **av)
+anope_event_quit (const char *source, int ac, const char **av)
{
if (ac != 1)
return MOD_CONT;
@@ -1135,34 +1135,34 @@ anope_event_quit (char *source, int ac, char **av)
}
void
-plexus_cmd_372 (char *source, char *msg)
+plexus_cmd_372 (const char *source, const char *msg)
{
send_cmd (ServerName, "372 %s :- %s", source, msg);
}
void
-plexus_cmd_372_error (char *source)
+plexus_cmd_372_error (const char *source)
{
send_cmd (ServerName, "422 %s :- MOTD file not found! Please "
"contact your IRC administrator.", source);
}
void
-plexus_cmd_375 (char *source)
+plexus_cmd_375 (const char *source)
{
send_cmd (ServerName, "375 %s :- %s Message of the Day",
source, ServerName);
}
void
-plexus_cmd_376 (char *source)
+plexus_cmd_376 (const char *source)
{
send_cmd (ServerName, "376 %s :End of /MOTD command.", source);
}
/* 391 */
void
-plexus_cmd_391 (char *source, char *timestr)
+plexus_cmd_391 (const char *source, const char *timestr)
{
if (!timestr)
{
@@ -1173,7 +1173,7 @@ plexus_cmd_391 (char *source, char *timestr)
/* 250 */
void
-plexus_cmd_250 (char *buf)
+plexus_cmd_250 (const char *buf)
{
if (!buf)
{
@@ -1185,7 +1185,7 @@ plexus_cmd_250 (char *buf)
/* 307 */
void
-plexus_cmd_307 (char *buf)
+plexus_cmd_307 (const char *buf)
{
if (!buf)
{
@@ -1197,7 +1197,7 @@ plexus_cmd_307 (char *buf)
/* 311 */
void
-plexus_cmd_311 (char *buf)
+plexus_cmd_311 (const char *buf)
{
if (!buf)
{
@@ -1209,7 +1209,7 @@ plexus_cmd_311 (char *buf)
/* 312 */
void
-plexus_cmd_312 (char *buf)
+plexus_cmd_312 (const char *buf)
{
if (!buf)
{
@@ -1221,7 +1221,7 @@ plexus_cmd_312 (char *buf)
/* 317 */
void
-plexus_cmd_317 (char *buf)
+plexus_cmd_317 (const char *buf)
{
if (!buf)
{
@@ -1233,7 +1233,7 @@ plexus_cmd_317 (char *buf)
/* 219 */
void
-plexus_cmd_219 (char *source, char *letter)
+plexus_cmd_219 (const char *source, const char *letter)
{
if (!source)
{
@@ -1253,7 +1253,7 @@ plexus_cmd_219 (char *source, char *letter)
/* 401 */
void
-plexus_cmd_401 (char *source, char *who)
+plexus_cmd_401 (const char *source, const char *who)
{
if (!source || !who)
{
@@ -1264,7 +1264,7 @@ plexus_cmd_401 (char *source, char *who)
/* 318 */
void
-plexus_cmd_318 (char *source, char *who)
+plexus_cmd_318 (const char *source, const char *who)
{
if (!source || !who)
{
@@ -1276,7 +1276,7 @@ plexus_cmd_318 (char *source, char *who)
/* 242 */
void
-plexus_cmd_242 (char *buf)
+plexus_cmd_242 (const char *buf)
{
if (!buf)
{
@@ -1288,7 +1288,7 @@ plexus_cmd_242 (char *buf)
/* 243 */
void
-plexus_cmd_243 (char *buf)
+plexus_cmd_243 (const char *buf)
{
if (!buf)
{
@@ -1300,7 +1300,7 @@ plexus_cmd_243 (char *buf)
/* 211 */
void
-plexus_cmd_211 (char *buf)
+plexus_cmd_211 (const char *buf)
{
if (!buf)
{
@@ -1311,7 +1311,7 @@ plexus_cmd_211 (char *buf)
}
void
-plexus_cmd_mode (char *source, char *dest, char *buf)
+plexus_cmd_mode (const char *source, const char *dest, const char *buf)
{
if (!buf)
{
@@ -1322,7 +1322,7 @@ plexus_cmd_mode (char *source, char *dest, char *buf)
}
void
-plexus_cmd_nick (char *nick, char *name, char *mode)
+plexus_cmd_nick (const char *nick, const char *name, const char *mode)
{
EnforceQlinedNick (nick, NULL);
send_cmd (ServerName, "NICK %s 1 %ld %s %s %s %s 0 %s :%s", nick,
@@ -1332,7 +1332,7 @@ plexus_cmd_nick (char *nick, char *name, char *mode)
}
void
-plexus_cmd_kick (char *source, char *chan, char *user, char *buf)
+plexus_cmd_kick (const char *source, const char *chan, const char *user, const char *buf)
{
if (buf)
{
@@ -1345,7 +1345,7 @@ plexus_cmd_kick (char *source, char *chan, char *user, char *buf)
}
void
-plexus_cmd_notice_ops (char *source, char *dest, char *buf)
+plexus_cmd_notice_ops (const char *source, const char *dest, const char *buf)
{
if (!buf)
{
@@ -1356,14 +1356,14 @@ plexus_cmd_notice_ops (char *source, char *dest, char *buf)
}
void
-plexus_cmd_bot_chan_mode (char *nick, char *chan)
+plexus_cmd_bot_chan_mode (const char *nick, const char *chan)
{
anope_cmd_mode (nick, chan, "%s %s %s", myIrcd->botchanumode, nick, nick);
}
/* QUIT */
void
-plexus_cmd_quit (char *source, char *buf)
+plexus_cmd_quit (const char *source, const char *buf)
{
if (buf)
{
@@ -1377,14 +1377,14 @@ plexus_cmd_quit (char *source, char *buf)
/* PONG */
void
-plexus_cmd_pong (char *servname, char *who)
+plexus_cmd_pong (const char *servname, const char *who)
{
send_cmd (servname, "PONG %s", who);
}
/* INVITE */
void
-plexus_cmd_invite (char *source, char *chan, char *nick)
+plexus_cmd_invite (const char *source, const char *chan, const char *nick)
{
if (!source || !chan || !nick)
{
@@ -1396,7 +1396,7 @@ plexus_cmd_invite (char *source, char *chan, char *nick)
/* SQUIT */
void
-plexus_cmd_squit (char *servname, char *message)
+plexus_cmd_squit (const char *servname, const char *message)
{
if (!servname || !message)
{
@@ -1407,7 +1407,7 @@ plexus_cmd_squit (char *servname, char *message)
}
int
-anope_event_mode (char *source, int ac, char **av)
+anope_event_mode (const char *source, int ac, const char **av)
{
if (ac < 2)
return MOD_CONT;
@@ -1434,7 +1434,7 @@ anope_event_mode (char *source, int ac, char **av)
}
void
-plexus_cmd_351 (char *source)
+plexus_cmd_351 (const char *source)
{
send_cmd (ServerName, "351 %s Anope-%s %s :%s - %s (%s) -- %s",
source, version_number, ServerName, ircd->name, version_flags,
@@ -1443,25 +1443,25 @@ plexus_cmd_351 (char *source)
/* Event: PROTOCTL */
int
-anope_event_capab (char *source, int ac, char **av)
+anope_event_capab (const char *source, int ac, const char **av)
{
int argvsize = 8;
int argc;
- char **argv;
+ const char **argv;
char *str;
if (ac < 1)
return MOD_CONT;
/* We get the params as one arg, we should split it for capab_parse */
- argv = scalloc (argvsize, sizeof (char *));
+ argv = (const char **)scalloc (argvsize, sizeof (const char *));
argc = 0;
while ((str = myStrGetToken (av[0], ' ', argc)))
{
if (argc == argvsize)
{
argvsize += 8;
- argv = srealloc (argv, argvsize * sizeof (char *));
+ argv = (const char **)srealloc (argv, argvsize * sizeof (const char *));
}
argv[argc] = str;
argc++;
@@ -1472,16 +1472,16 @@ anope_event_capab (char *source, int ac, char **av)
/* Free our built ac/av */
for (argvsize = 0; argvsize < argc; argvsize++)
{
- free (argv[argvsize]);
+ free ((char *)argv[argvsize]);
}
- free (argv);
+ free ((char **)argv);
return MOD_CONT;
}
/* SVSHOLD - set */
void
-plexus_cmd_svshold (char *nick)
+plexus_cmd_svshold (const char *nick)
{
send_cmd (s_OperServ, "ENCAP * RESV %d %s 0 :%s", NSReleaseTimeout, nick,
"This nick is being held for a registered user. "
@@ -1490,14 +1490,14 @@ plexus_cmd_svshold (char *nick)
/* SVSHOLD - release */
void
-plexus_cmd_release_svshold (char *nick)
+plexus_cmd_release_svshold (const char *nick)
{
send_cmd (s_OperServ, "UNRESV * %s", nick);
}
/* SVSNICK */
void
-plexus_cmd_svsnick (char *nick, char *newnick, time_t when)
+plexus_cmd_svsnick (const char *nick, const char *newnick, time_t when)
{
User *u;
@@ -1511,8 +1511,8 @@ plexus_cmd_svsnick (char *nick, char *newnick, time_t when)
}
void
-plexus_cmd_guest_nick (char *nick, char *user, char *host, char *real,
- char *modes)
+plexus_cmd_guest_nick (const char *nick, const char *user, const char *host, const char *real,
+ const char *modes)
{
send_cmd (ServerName, "NICK %s 1 %ld %s %s %s %s 0 %s :%s", nick,
(long int) time (NULL), modes, user, host, ServerName, host,
@@ -1520,13 +1520,13 @@ plexus_cmd_guest_nick (char *nick, char *user, char *host, char *real,
}
void
-plexus_cmd_svso (char *source, char *nick, char *flag)
+plexus_cmd_svso (const char *source, const char *nick, const char *flag)
{
/* Not Supported by this IRCD */
}
void
-plexus_cmd_unban (char *name, char *nick)
+plexus_cmd_unban (const char *name, const char *nick)
{
/* Not Supported by this IRCD */
}
@@ -1534,7 +1534,7 @@ plexus_cmd_unban (char *name, char *nick)
/* SVSMODE channel modes */
void
-plexus_cmd_svsmode_chan (char *name, char *mode, char *nick)
+plexus_cmd_svsmode_chan (const char *name, const char *mode, const char *nick)
{
/* Not Supported by this IRCD */
}
@@ -1542,7 +1542,7 @@ plexus_cmd_svsmode_chan (char *name, char *mode, char *nick)
/* SVSMODE +d */
/* sent if svid is something weird */
void
-plexus_cmd_svid_umode (char *nick, time_t ts)
+plexus_cmd_svid_umode (const char *nick, time_t ts)
{
send_cmd (ServerName, "ENCAP * SVSMODE %s %lu +d 1", nick,
(unsigned long int) ts);
@@ -1558,13 +1558,13 @@ plexus_cmd_nc_change (User * u)
/* SVSMODE +d */
void
-plexus_cmd_svid_umode2 (User * u, char *ts)
+plexus_cmd_svid_umode2 (User * u, const char *ts)
{
/* not used */
}
void
-plexus_cmd_svid_umode3 (User * u, char *ts)
+plexus_cmd_svid_umode3 (User * u, const char *ts)
{
char modes[512];
@@ -1587,7 +1587,7 @@ plexus_cmd_svid_umode3 (User * u, char *ts)
/* NICK <newnick> */
void
-plexus_cmd_chg_nick (char *oldnick, char *newnick)
+plexus_cmd_chg_nick (const char *oldnick, const char *newnick)
{
if (!oldnick || !newnick)
{
@@ -1606,63 +1606,63 @@ plexus_cmd_chg_nick (char *oldnick, char *newnick)
* parv[4] = server's idea of UTC time
*/
int
-anope_event_svinfo (char *source, int ac, char **av)
+anope_event_svinfo (const char *source, int ac, const char **av)
{
/* currently not used but removes the message : unknown message from server */
return MOD_CONT;
}
int
-anope_event_pass (char *source, int ac, char **av)
+anope_event_pass (const char *source, int ac, const char **av)
{
/* currently not used but removes the message : unknown message from server */
return MOD_CONT;
}
void
-plexus_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
+plexus_cmd_svsjoin (const char *source, const char *nick, const char *chan, const char *param)
{
send_cmd(ServerName, "ENCAP * SVSJOIN %s %s", nick, chan);
}
void
-plexus_cmd_svspart (char *source, char *nick, char *chan)
+plexus_cmd_svspart (const char *source, const char *nick, const char *chan)
{
send_cmd(ServerName, "ENCAP * SVSPART %s %s", nick, chan);
}
void
-plexus_cmd_swhois (char *source, char *who, char *mask)
+plexus_cmd_swhois (const char *source, const char *who, const char *mask)
{
/* not supported */
}
int
-anope_event_notice (char *source, int ac, char **av)
+anope_event_notice (const char *source, int ac, const char **av)
{
return MOD_CONT;
}
int
-anope_event_admin (char *source, int ac, char **av)
+anope_event_admin (const char *source, int ac, const char **av)
{
return MOD_CONT;
}
int
-anope_event_invite (char *source, int ac, char **av)
+anope_event_invite (const char *source, int ac, const char **av)
{
return MOD_CONT;
}
int
-plexus_flood_mode_check (char *value)
+plexus_flood_mode_check (const char *value)
{
return 0;
}
int
-anope_event_error (char *source, int ac, char **av)
+anope_event_error (const char *source, int ac, const char **av)
{
if (ac >= 1)
{
@@ -1675,7 +1675,7 @@ anope_event_error (char *source, int ac, char **av)
}
void
-plexus_cmd_jupe (char *jserver, char *who, char *reason)
+plexus_cmd_jupe (const char *jserver, const char *who, const char *reason)
{
char rbuf[256];
@@ -1693,7 +1693,7 @@ plexus_cmd_jupe (char *jserver, char *who, char *reason)
0 = nick is in valid
*/
int
-plexus_valid_nick (char *nick)
+plexus_valid_nick (const char *nick)
{
/* no hard coded invalid nicks */
return 1;
@@ -1704,7 +1704,7 @@ plexus_valid_nick (char *nick)
0 = chan is in valid
*/
int
-plexus_valid_chan (char *chan)
+plexus_valid_chan (const char *chan)
{
/* no hard coded invalid chan */
return 1;
@@ -1712,7 +1712,7 @@ plexus_valid_chan (char *chan)
void
-plexus_cmd_ctcp (char *source, char *dest, char *buf)
+plexus_cmd_ctcp (const char *source, const char *dest, const char *buf)
{
char *s;