summaryrefslogtreecommitdiff
path: root/src/protocol/plexus2.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/plexus2.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/plexus2.c')
-rw-r--r--src/protocol/plexus2.c218
1 files changed, 109 insertions, 109 deletions
diff --git a/src/protocol/plexus2.c b/src/protocol/plexus2.c
index 8ba499410..596288916 100644
--- a/src/protocol/plexus2.c
+++ b/src/protocol/plexus2.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--;
@@ -533,7 +533,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)
{
@@ -551,13 +551,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)
{
@@ -568,26 +568,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)
{
@@ -599,20 +599,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)
{
@@ -631,7 +631,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)
{
@@ -678,7 +678,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;
@@ -691,7 +691,7 @@ anope_event_tburst (char *source, int ac, char **av)
}
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;
@@ -778,36 +778,36 @@ 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 */
}
void
-plexus_cmd_svsadmin (char *server, int set)
+plexus_cmd_svsadmin (const char *server, int set)
{
}
void
-plexus_cmd_sgline (char *mask, char *reason)
+plexus_cmd_sgline (const char *mask, const char *reason)
{
send_cmd (s_OperServ, "XLINE * %s :%s", mask, reason);
}
@@ -818,8 +818,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, "SVSTOPIC %s %s %lu :%s", chan, whosetit,
(unsigned long int) when, topic);
@@ -832,7 +832,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;
@@ -851,13 +851,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);
@@ -873,15 +873,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)
{
@@ -897,7 +897,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, "SVSMODE %s %s", u->nick, av[0]);
@@ -949,14 +949,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);
}
@@ -987,8 +987,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 %s 0 :%s", nick,
@@ -998,7 +998,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)
{
@@ -1011,7 +1011,7 @@ plexus_cmd_part (char *nick, char *chan, char *buf)
}
int
-anope_event_sethost (char *source, int ac, char **av)
+anope_event_sethost (const char *source, int ac, const char **av)
{
User *u;
@@ -1028,12 +1028,12 @@ anope_event_sethost (char *source, int ac, char **av)
return MOD_CONT;
}
- change_user_host (u, av[1]);
+ u->SetDisplayedHost(av[1]);
return MOD_CONT;
}
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;
@@ -1042,7 +1042,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)
{
@@ -1053,7 +1053,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;
@@ -1063,7 +1063,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;
@@ -1072,7 +1072,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);
@@ -1095,7 +1095,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;
@@ -1104,7 +1104,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)
{
@@ -1116,7 +1116,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;
@@ -1125,7 +1125,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;
@@ -1134,7 +1134,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)
{
@@ -1145,7 +1145,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"))
{
@@ -1156,7 +1156,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;
@@ -1165,7 +1165,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;
@@ -1174,34 +1174,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)
{
@@ -1212,7 +1212,7 @@ plexus_cmd_391 (char *source, char *timestr)
/* 250 */
void
-plexus_cmd_250 (char *buf)
+plexus_cmd_250 (const char *buf)
{
if (!buf)
{
@@ -1224,7 +1224,7 @@ plexus_cmd_250 (char *buf)
/* 307 */
void
-plexus_cmd_307 (char *buf)
+plexus_cmd_307 (const char *buf)
{
if (!buf)
{
@@ -1236,7 +1236,7 @@ plexus_cmd_307 (char *buf)
/* 311 */
void
-plexus_cmd_311 (char *buf)
+plexus_cmd_311 (const char *buf)
{
if (!buf)
{
@@ -1248,7 +1248,7 @@ plexus_cmd_311 (char *buf)
/* 312 */
void
-plexus_cmd_312 (char *buf)
+plexus_cmd_312 (const char *buf)
{
if (!buf)
{
@@ -1260,7 +1260,7 @@ plexus_cmd_312 (char *buf)
/* 317 */
void
-plexus_cmd_317 (char *buf)
+plexus_cmd_317 (const char *buf)
{
if (!buf)
{
@@ -1272,7 +1272,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)
{
@@ -1291,7 +1291,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)
{
@@ -1302,7 +1302,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)
{
@@ -1314,7 +1314,7 @@ plexus_cmd_318 (char *source, char *who)
/* 242 */
void
-plexus_cmd_242 (char *buf)
+plexus_cmd_242 (const char *buf)
{
if (!buf)
{
@@ -1326,7 +1326,7 @@ plexus_cmd_242 (char *buf)
/* 243 */
void
-plexus_cmd_243 (char *buf)
+plexus_cmd_243 (const char *buf)
{
if (!buf)
{
@@ -1338,7 +1338,7 @@ plexus_cmd_243 (char *buf)
/* 211 */
void
-plexus_cmd_211 (char *buf)
+plexus_cmd_211 (const char *buf)
{
if (!buf)
{
@@ -1349,7 +1349,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)
{
@@ -1360,7 +1360,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 %s 0 :%s", nick,
@@ -1370,7 +1370,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)
{
@@ -1383,7 +1383,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)
{
@@ -1394,14 +1394,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", ircd->botchanumode, nick);
}
/* QUIT */
void
-plexus_cmd_quit (char *source, char *buf)
+plexus_cmd_quit (const char *source, const char *buf)
{
if (buf)
{
@@ -1415,14 +1415,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)
{
@@ -1434,7 +1434,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)
{
@@ -1445,7 +1445,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;
@@ -1472,7 +1472,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,
@@ -1481,23 +1481,23 @@ 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++;
@@ -1507,30 +1507,30 @@ 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)
{
/* Not supported by this IRCD */
}
/* SVSHOLD - release */
void
-plexus_cmd_release_svshold (char *nick)
+plexus_cmd_release_svshold (const char *nick)
{
/* Not Supported by this IRCD */
}
/* SVSNICK */
void
-plexus_cmd_svsnick (char *nick, char *newnick, time_t when)
+plexus_cmd_svsnick (const char *nick, const char *newnick, time_t when)
{
if (!nick || !newnick)
{
@@ -1540,21 +1540,21 @@ 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 %s 0 :%s", nick,
(long int) time (NULL), modes, user, host, "*", ServerName, 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 */
}
@@ -1562,7 +1562,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 */
}
@@ -1570,7 +1570,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, "SVSID %s 1", nick);
}
@@ -1585,7 +1585,7 @@ 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)
{
if (u->svid != u->timestamp)
{
@@ -1598,14 +1598,14 @@ plexus_cmd_svid_umode2 (User * u, char *ts)
}
void
-plexus_cmd_svid_umode3 (User * u, char *ts)
+plexus_cmd_svid_umode3 (User * u, const char *ts)
{
/* not used */
}
/* NICK <newnick> */
void
-plexus_cmd_chg_nick (char *oldnick, char *newnick)
+plexus_cmd_chg_nick (const char *oldnick, const char *newnick)
{
if (!oldnick || !newnick)
{
@@ -1624,63 +1624,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)
{
/* Not Supported by this IRCD */
}
void
-plexus_cmd_svspart (char *source, char *nick, char *chan)
+plexus_cmd_svspart (const char *source, const char *nick, const char *chan)
{
/* Not Supported by this IRCD */
}
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)
{
@@ -1693,7 +1693,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];
@@ -1711,7 +1711,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;
@@ -1722,7 +1722,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;
@@ -1730,7 +1730,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;