summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/protocol/bahamut.c2
-rw-r--r--src/protocol/hybrid.c54
-rw-r--r--src/protocol/plexus.c2
-rw-r--r--src/protocol/ptlink.c2
-rw-r--r--src/protocol/rageircd.c4
-rw-r--r--src/protocol/ratbox.c3
-rw-r--r--src/protocol/solidircd.c2
-rw-r--r--src/protocol/ultimate3.c2
-rw-r--r--src/protocol/viagra.c2
9 files changed, 34 insertions, 39 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index 5cca68151..d7add43d0 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -740,7 +740,7 @@ void bahamut_cmd_svsadmin(char *server, int set)
/* SGLINE */
void bahamut_cmd_sgline(char *mask, char *reason)
{
- send_cmd(NULL, "SGLINE %d :%s:%s", (int) strlen(mask), mask, reason);
+ send_cmd(NULL, "SGLINE %d :%s:%s", (int)strlen(mask), mask, reason);
}
/* RAKILL */
diff --git a/src/protocol/hybrid.c b/src/protocol/hybrid.c
index 9c0360482..e08cfd72a 100644
--- a/src/protocol/hybrid.c
+++ b/src/protocol/hybrid.c
@@ -1204,34 +1204,34 @@ void hybrid_cmd_351(char *source)
/* Event: PROTOCTL */
int anope_event_capab(char *source, int ac, char **av)
{
- int argvsize = 8;
- int argc;
- 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 *));
- argc = 0;
- while ((str = myStrGetToken(av[0], ' ', argc))) {
- if (argc == argvsize) {
- argvsize += 8;
- argv = srealloc(argv, argvsize * sizeof(char *));
- }
- argv[argc] = str;
- argc++;
- }
-
+ int argvsize = 8;
+ int argc;
+ 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 *));
+ argc = 0;
+ while ((str = myStrGetToken(av[0], ' ', argc))) {
+ if (argc == argvsize) {
+ argvsize += 8;
+ argv = srealloc(argv, argvsize * sizeof(char *));
+ }
+ argv[argc] = str;
+ argc++;
+ }
+
capab_parse(argc, argv);
-
- /* Free our built ac/av */
- for (argvsize = 0; argvsize < argc; argvsize++) {
- free(argv[argvsize]);
- }
- free(argv);
-
+
+ /* Free our built ac/av */
+ for (argvsize = 0; argvsize < argc; argvsize++) {
+ free(argv[argvsize]);
+ }
+ free(argv);
+
return MOD_CONT;
}
diff --git a/src/protocol/plexus.c b/src/protocol/plexus.c
index 2f2021282..0e16b2937 100644
--- a/src/protocol/plexus.c
+++ b/src/protocol/plexus.c
@@ -1,5 +1,4 @@
/* PlexusIRCD IRCD functions
-/* PlexusIRCD IRCD functions
*
* (C) 2003-2005 Anope Team
* Contact us at info@anope.org
@@ -1852,4 +1851,3 @@ AnopeInit (int argc, char **argv)
}
/* EOF */
-
diff --git a/src/protocol/ptlink.c b/src/protocol/ptlink.c
index dc60f14d4..846f1715c 100644
--- a/src/protocol/ptlink.c
+++ b/src/protocol/ptlink.c
@@ -1,5 +1,4 @@
/* PTLink IRCD functions
-/* PTLink IRCD functions
*
* (C) 2003-2005 Anope Team
* Contact us at info@anope.org
@@ -1718,4 +1717,3 @@ int AnopeInit(int argc, char **argv)
}
/* EOF */
-
diff --git a/src/protocol/rageircd.c b/src/protocol/rageircd.c
index 542f1ed69..932ca15e6 100644
--- a/src/protocol/rageircd.c
+++ b/src/protocol/rageircd.c
@@ -1,5 +1,4 @@
/* Rage IRCD functions
-/* Rage IRCD functions
*
* (C) 2003-2005 Anope Team
* Contact us at info@anope.org
@@ -562,6 +561,7 @@ void moduleAddIRCDMsgs(void) {
}
/* *INDENT-ON* */
+int anope_event_error(char *source, int ac, char **av)
{
if (ac >= 1) {
if (debug) {
@@ -628,7 +628,7 @@ void rageircd_cmd_svsadmin(char *server, int set)
void rageircd_cmd_sgline(char *mask, char *reason)
{
- send_cmd(NULL, "SGLINE %d :%s:%s", (int) strlen(mask), mask, reason);
+ send_cmd(NULL, "SGLINE %d :%s:%s", (int)strlen(mask), mask, reason);
}
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index 738632ffe..1af1f316d 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -1360,8 +1360,7 @@ void ratbox_cmd_nick(char *nick, char *name, char *mode)
(long int) time(NULL), mode, ServiceUser, ServiceHost,
ServerName, name);
}
- send_cmd(UseTS6 ? nicknumbuf : nick, "RESV * %s :%s", nick,
- "Reserved for services");
+ send_cmd(UseTS6 ? nicknumbuf : nick, "RESV * %s :%s", nick, "Reserved for services");
}
void ratbox_cmd_kick(char *source, char *chan, char *user, char *buf)
diff --git a/src/protocol/solidircd.c b/src/protocol/solidircd.c
index e7bef178f..0b70e4c3e 100644
--- a/src/protocol/solidircd.c
+++ b/src/protocol/solidircd.c
@@ -764,7 +764,7 @@ void solidircd_cmd_svsadmin(char *server, int set)
/* SGLINE */
void solidircd_cmd_sgline(char *mask, char *reason)
{
- send_cmd(NULL, "SGLINE %d :%s:%s", (int) strlen(mask), mask, reason);
+ send_cmd(NULL, "SGLINE %d :%s:%s", (int)strlen(mask), mask, reason);
}
/* RAKILL */
diff --git a/src/protocol/ultimate3.c b/src/protocol/ultimate3.c
index 383600fb9..6eb4bd144 100644
--- a/src/protocol/ultimate3.c
+++ b/src/protocol/ultimate3.c
@@ -703,7 +703,7 @@ void ultimate3_cmd_svsadmin(char *server, int set)
void ultimate3_cmd_sgline(char *mask, char *reason)
{
- send_cmd(NULL, "SGLINE %d :%s:%s", (int) strlen(mask), mask, reason);
+ send_cmd(NULL, "SGLINE %d :%s:%s", (int)strlen(mask), mask, reason);
}
void ultimate3_cmd_remove_akill(char *user, char *host)
diff --git a/src/protocol/viagra.c b/src/protocol/viagra.c
index 7da9475ec..12acee084 100644
--- a/src/protocol/viagra.c
+++ b/src/protocol/viagra.c
@@ -774,7 +774,7 @@ void viagra_cmd_svsadmin(char *server, int set)
void viagra_cmd_sgline(char *mask, char *reason)
{
- send_cmd(NULL, "SGLINE %d :%s:%s", (int) strlen(mask), mask, reason);
+ send_cmd(NULL, "SGLINE %d :%s:%s", (int)strlen(mask), mask, reason);
}
void viagra_cmd_remove_akill(char *user, char *host)