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 /src | |
parent | e42f125a850c11ead01602e01da53ba9200621ab (diff) |
Fixed Windows build
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol/inspircd12.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |