diff options
Diffstat (limited to 'src/protocol')
| -rw-r--r-- | src/protocol/bahamut.c | 5 | ||||
| -rw-r--r-- | src/protocol/hybrid.c | 54 | ||||
| -rw-r--r-- | src/protocol/plexus.c | 2 | ||||
| -rw-r--r-- | src/protocol/ptlink.c | 2 | ||||
| -rw-r--r-- | src/protocol/rageircd.c | 7 | ||||
| -rw-r--r-- | src/protocol/ratbox.c | 3 | ||||
| -rw-r--r-- | src/protocol/solidircd.c | 5 | ||||
| -rw-r--r-- | src/protocol/ultimate3.c | 2 | ||||
| -rw-r--r-- | src/protocol/viagra.c | 2 |
9 files changed, 45 insertions, 37 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 55a25d3c4..5cca68151 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 */ @@ -1628,7 +1628,8 @@ int AnopeInit(int argc, char **argv) { moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); + moduleAddVersion + ("$Id$"); moduleSetType(PROTOCOL); pmodule_ircd_version("BahamutIRCd 1.4.*/1.8.*"); diff --git a/src/protocol/hybrid.c b/src/protocol/hybrid.c index e08cfd72a..9c0360482 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 0e16b2937..2f2021282 100644 --- a/src/protocol/plexus.c +++ b/src/protocol/plexus.c @@ -1,4 +1,5 @@ /* PlexusIRCD IRCD functions +/* PlexusIRCD IRCD functions * * (C) 2003-2005 Anope Team * Contact us at info@anope.org @@ -1851,3 +1852,4 @@ AnopeInit (int argc, char **argv) } /* EOF */ + diff --git a/src/protocol/ptlink.c b/src/protocol/ptlink.c index 846f1715c..dc60f14d4 100644 --- a/src/protocol/ptlink.c +++ b/src/protocol/ptlink.c @@ -1,4 +1,5 @@ /* PTLink IRCD functions +/* PTLink IRCD functions * * (C) 2003-2005 Anope Team * Contact us at info@anope.org @@ -1717,3 +1718,4 @@ int AnopeInit(int argc, char **argv) } /* EOF */ + diff --git a/src/protocol/rageircd.c b/src/protocol/rageircd.c index 5c72eb2bd..542f1ed69 100644 --- a/src/protocol/rageircd.c +++ b/src/protocol/rageircd.c @@ -1,4 +1,5 @@ /* Rage IRCD functions +/* Rage IRCD functions * * (C) 2003-2005 Anope Team * Contact us at info@anope.org @@ -561,7 +562,6 @@ 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); } @@ -1625,7 +1625,8 @@ int AnopeInit(int argc, char **argv) { moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); + moduleAddVersion + ("$Id$"); moduleSetType(PROTOCOL); pmodule_ircd_version("RageIRCd 2.0.x"); diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 1af1f316d..738632ffe 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -1360,7 +1360,8 @@ 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 507d7fad0..e7bef178f 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 */ @@ -1656,7 +1656,8 @@ int AnopeInit(int argc, char **argv) { moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); + moduleAddVersion + ("$Id$"); moduleSetType(PROTOCOL); pmodule_ircd_version("Solid-IRCd 3.4.*"); diff --git a/src/protocol/ultimate3.c b/src/protocol/ultimate3.c index 6eb4bd144..383600fb9 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 12acee084..7da9475ec 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) |
