diff options
author | Adam <Adam@anope.org> | 2010-07-06 16:28:58 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-07-06 16:28:58 -0400 |
commit | 3a422777c5b7333ffaafb46f577ffe1db9f12b94 (patch) | |
tree | 0cf429927cce38011a3ad742128c3a66815f0af2 | |
parent | e42f125a850c11ead01602e01da53ba9200621ab (diff) |
Fixed Windows build
-rw-r--r-- | include/modules.h | 2 | ||||
-rw-r--r-- | src/protocol/inspircd12.c | 4 | ||||
-rw-r--r-- | version.log | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h index 25696ba80..0dd5bf46d 100644 --- a/include/modules.h +++ b/include/modules.h @@ -312,7 +312,7 @@ MDE int moduleAddCommand(CommandHash *cmdTable[], Command *c, int pos); MDE int addCommand(CommandHash *cmdTable[], Command *c,int pos); MDE int delCommand(CommandHash *cmdTable[], Command *c,char *mod_name); /* Del a command from a cmd table */ MDE int moduleDelCommand(CommandHash *cmdTable[],char *name); /* Del a command from a cmd table */ -Command *findCommand(CommandHash *cmdTable[], const char *name); /* Find a command */ +MDE Command *findCommand(CommandHash *cmdTable[], const char *name); /* Find a command */ /*************************************************************************/ diff --git a/src/protocol/inspircd12.c b/src/protocol/inspircd12.c index 807879068..03743d2fc 100644 --- a/src/protocol/inspircd12.c +++ b/src/protocol/inspircd12.c @@ -1446,11 +1446,13 @@ int anope_event_squit(char *source, int ac, char **av) int anope_event_rsquit(char *source, int ac, char **av) { + Server *s; + if (ac < 1 || ac > 3) return MOD_CONT; /* On InspIRCd we must send a SQUIT when we receive RSQUIT for a server we have juped */ - Server *s = findserver(servlist, av[0]); + s = findserver(servlist, av[0]); if (!s) s = findserver_uid(servlist, av[0]); if (s && s->flags & SERVER_JUPED) diff --git a/version.log b/version.log index 67fda81d0..9592645d9 100644 --- a/version.log +++ b/version.log @@ -8,7 +8,7 @@ VERSION_MAJOR="1" VERSION_MINOR="8" VERSION_PATCH="4" VERSION_EXTRA="-git" -VERSION_BUILD="3012" +VERSION_BUILD="3013" # $Log$ # Changes since the 1.8.4 Release #Revision 3012 - Removed enc_encrypt_in_place, it is unnecessary and it can easially be used improperly |