diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 5 | ||||
-rw-r--r-- | src/protocol/inspircd.c | 63 | ||||
-rw-r--r-- | src/protocol/plexus.c | 2 | ||||
-rw-r--r-- | src/protocol/ptlink.c | 2 | ||||
-rw-r--r-- | src/protocol/rageircd.c | 24 | ||||
-rw-r--r-- | src/protocol/ultimate3.c | 9 |
6 files changed, 57 insertions, 48 deletions
diff --git a/src/Makefile b/src/Makefile index 65c1cc3fc..9e55769b5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,12 +3,12 @@ RDB_OBJ = $(RDB:.c=.o) OBJS = actions.o base64.o botserv.o channels.o chanserv.o commands.o compat.o \ config.o datafiles.o encrypt.o events.o helpserv.o hostserv.o init.o ircd.o language.o list.o log.o mail.o main.o \ memory.o memoserv.o messages.o misc.o modules.o news.o nickserv.o operserv.o \ - process.o send.o servers.o sessions.o slist.o sockutil.o timeout.o userban.o users.o \ + process.o send.o servers.o sessions.o slist.o sockutil.o timeout.o users.o \ $(VSNPRINTF_O) $(RDB_OBJ) $(MYSQL_OBJ) SRCS = actions.c base64.c botserv.c channels.c chanserv.c commands.c compat.c \ config.c datafiles.c encrypt.c events.c helpserv.c hostserv.c init.c ircd.c language.c list.c log.c mail.c main.c \ memory.c memoserv.c messages.c misc.c modules.c news.c nickserv.c operserv.c \ - process.c send.c servers.c sessions.c slist.c sockutil.c timeout.c userban.c users.c \ + process.c send.c servers.c sessions.c slist.c sockutil.c timeout.c users.c \ $(VSNPRINTF_C) $(RDB) $(MYSQL) INCLUDES = ../include/commands.h ../include/defs.h ../include/language.h \ @@ -71,7 +71,6 @@ sessions.o: sessions.c $(INCLUDES) slist.o: slist.c $(INCLUDES) sockutil.o: sockutil.c $(INCLUDES) timeout.o: timeout.c $(INCLUDES) -userban.o: userban.c $(INCLUDES) users.o: users.c $(INCLUDES) vsnprintf.o: vsnprintf.c $(INCLUDES) mysql.o: mysql.c $(INCLUDES) diff --git a/src/protocol/inspircd.c b/src/protocol/inspircd.c index 592eefddf..76874cc51 100644 --- a/src/protocol/inspircd.c +++ b/src/protocol/inspircd.c @@ -19,37 +19,37 @@ #ifdef _WIN32 #include "winsock.h" -int inet_aton (const char *name, struct in_addr *addr) +int inet_aton(const char *name, struct in_addr *addr) { - uint32 a = inet_addr (name); - addr->s_addr = a; - return a != (uint32)-1; + uint32 a = inet_addr(name); + addr->s_addr = a; + return a != (uint32) - 1; } #endif IRCDVar myIrcd[] = { {"InspIRCd 1.0 Beta", /* ircd name */ - "+o", /* nickserv mode */ - "+o", /* chanserv mode */ - "+o", /* memoserv mode */ - "+o", /* hostserv mode */ - "+io", /* operserv mode */ - "+o", /* botserv mode */ - "+o", /* helpserv mode */ - "+i", /* Dev/Null mode */ - "+io", /* Global mode */ - "+o", /* nickserv alias mode */ - "+o", /* chanserv alias mode */ - "+o", /* memoserv alias mode */ - "+io", /* hostserv alias mode */ - "+io", /* operserv alias mode */ - "+o", /* botserv alias mode */ - "+o", /* helpserv alias mode */ - "+i", /* Dev/Null alias mode */ - "+io", /* Global alias mode */ - "+i", /* Used by BotServ Bots */ + "+o", /* nickserv mode */ + "+o", /* chanserv mode */ + "+o", /* memoserv mode */ + "+o", /* hostserv mode */ + "+io", /* operserv mode */ + "+o", /* botserv mode */ + "+o", /* helpserv mode */ + "+i", /* Dev/Null mode */ + "+io", /* Global mode */ + "+o", /* nickserv alias mode */ + "+o", /* chanserv alias mode */ + "+o", /* memoserv alias mode */ + "+io", /* hostserv alias mode */ + "+io", /* operserv alias mode */ + "+o", /* botserv alias mode */ + "+o", /* helpserv alias mode */ + "+i", /* Dev/Null alias mode */ + "+io", /* Global alias mode */ + "+i", /* Used by BotServ Bots */ 5, /* Chan Max Symbols */ - "-cilmnpstuzCGKNOQRSV", /* Modes to Remove */ + "-cilmnpstuzCGKNOQRSV", /* Modes to Remove */ "+ao", /* Channel Umode used by Botserv bots */ 1, /* SVSNICK */ 1, /* Vhost */ @@ -114,7 +114,8 @@ IRCDVar myIrcd[] = { 0, /* p10 */ NULL, /* character set */ 1, /* reports sync state */ - }, + } + , {NULL} }; @@ -401,7 +402,9 @@ void inspircd_set_umode(User * user, int ac, char **av) if (add) { opcnt++; if (WallOper) { - anope_cmd_global(s_OperServ, "\2%s\2 is now an IRC operator.", user->nick); + anope_cmd_global(s_OperServ, + "\2%s\2 is now an IRC operator.", + user->nick); } display_news(user, NEWS_OPER); } else { @@ -424,10 +427,10 @@ void inspircd_set_umode(User * user, int ac, char **av) /* Set mod_current_buffer from here */ void inspircd_set_mod_current_buffer(int ac, char **av) { - if (ac >= 3) - mod_current_buffer = sstrdup(av[2]); - else - mod_current_buffer = NULL; + if (ac >= 3) + mod_current_buffer = sstrdup(av[2]); + else + mod_current_buffer = NULL; } int anope_event_nickchange(char *source, int ac, char **av); diff --git a/src/protocol/plexus.c b/src/protocol/plexus.c index fc5d788f1..c4e9498e7 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 * @@ -1815,3 +1816,4 @@ AnopeInit (int argc, char **argv) } + diff --git a/src/protocol/ptlink.c b/src/protocol/ptlink.c index 0bcf671f2..5c4546f30 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 @@ -1716,3 +1717,4 @@ int AnopeInit(int argc, char **argv) return MOD_CONT; } + diff --git a/src/protocol/rageircd.c b/src/protocol/rageircd.c index 1db8ad6b0..42eb8d327 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) { @@ -579,16 +579,18 @@ int anope_event_burst(char *source, int ac, char **av) s = findserver(servlist, source); if (ac > 1) { /* for future use - start burst */ - } else { - /* If we found a server with the given source, that one just - * finished bursting. If there was no source, then our uplink - * server finished bursting. -GD - */ - if (!s && serv_uplink) - s = serv_uplink; - finish_sync(s, 1); - } - return MOD_CONT; +} else { + + /* If we found a server with the given source, that one just + * finished bursting. If there was no source, then our uplink + * server finished bursting. -GD + */ + if (!s && serv_uplink) + s = serv_uplink; + finish_sync(s, 1); +} + +return MOD_CONT; } void rageircd_cmd_sqline(char *mask, char *reason) diff --git a/src/protocol/ultimate3.c b/src/protocol/ultimate3.c index d45e2e1ae..714e4c089 100644 --- a/src/protocol/ultimate3.c +++ b/src/protocol/ultimate3.c @@ -1600,9 +1600,9 @@ int anope_event_burst(char *source, int ac, char **av) * finished bursting. If there was no source, then our uplink * server finished bursting. -GD */ - if (!s && serv_uplink) - s = serv_uplink; - finish_sync(s, 1); + if (!s && serv_uplink) + s = serv_uplink; + finish_sync(s, 1); } return MOD_CONT; } @@ -1765,7 +1765,8 @@ int AnopeInit(int argc, char **argv) { moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); + moduleAddVersion + ("$Id$"); moduleSetType(PROTOCOL); pmodule_ircd_version("UltimateIRCd 3.0.0.a26+"); |