diff options
author | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-09-07 17:29:07 +0000 |
---|---|---|
committer | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-09-07 17:29:07 +0000 |
commit | b0c19c6702c281fd3604356c2533329777b2702c (patch) | |
tree | b20c40a9b164e257ff12a4817fc583a9432268ea /src/bahamut.c | |
parent | eb0d83719b0e43b198d18af2885a378f90822c83 (diff) |
BUILD : 1.7.5 (340) BUGS : none NOTES : Applied patch 830 provided by Trystan to resolve several issues.
git-svn-id: svn://svn.anope.org/anope/trunk@340 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@216 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/bahamut.c')
-rw-r--r-- | src/bahamut.c | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/src/bahamut.c b/src/bahamut.c index 16c41795e..49dce62dd 100644 --- a/src/bahamut.c +++ b/src/bahamut.c @@ -89,7 +89,8 @@ IRCDVar ircd[] = { 0, /* Mode */ 0, /* Mode */ 1, - + 1, /* No Knock requires +i */ + NULL, /* CAPAB Chan Modes */ } , {NULL} @@ -124,8 +125,8 @@ IRCDCAPAB ircdcap[] = { 0, /* VL */ 0, /* TLKEXT */ 0, /* DODKEY */ - CAPAB_DOZIP /* DOZIP */ - } + CAPAB_DOZIP, /* DOZIP */ + 0} }; @@ -404,7 +405,7 @@ void anope_cmd_mode(char *source, char *dest, const char *fmt, ...) char buf[BUFSIZE]; *buf = '\0'; - if (!fmt) { + if (fmt) { va_start(args, fmt); vsnprintf(buf, BUFSIZE - 1, fmt, args); va_end(args); @@ -567,7 +568,7 @@ void moduleAddIRCDMsgs(void) { m = createMessage("MODE", anope_event_mode); addCoreMessage(IRCD,m); m = createMessage("MOTD", anope_event_motd); addCoreMessage(IRCD,m); m = createMessage("NICK", anope_event_nick); addCoreMessage(IRCD,m); - m = createMessage("NOTICE", NULL); addCoreMessage(IRCD,m); + m = createMessage("NOTICE", anope_event_notice); addCoreMessage(IRCD,m); m = createMessage("PART", anope_event_part); addCoreMessage(IRCD,m); m = createMessage("PASS", NULL); addCoreMessage(IRCD,m); m = createMessage("PING", anope_event_ping); addCoreMessage(IRCD,m); @@ -605,6 +606,8 @@ void moduleAddIRCDMsgs(void) { m = createMessage("SZLINE", NULL); addCoreMessage(IRCD,m); m = createMessage("UNSGLINE", NULL); addCoreMessage(IRCD,m); m = createMessage("UNSZLINE", NULL); addCoreMessage(IRCD,m); + m = createMessage("ERROR", anope_event_error); addCoreMessage(IRCD,m); + } /* *INDENT-ON* */ @@ -662,7 +665,7 @@ void anope_cmd_part(char *nick, char *chan, const char *fmt, ...) char buf[BUFSIZE]; *buf = '\0'; - if (!fmt) { + if (fmt) { va_start(args, fmt); vsnprintf(buf, BUFSIZE - 1, fmt, args); va_end(args); @@ -1419,4 +1422,25 @@ void anope_cmd_chg_nick(char *oldnick, char *newnick) send_cmd(oldnick, "NICK %s", newnick); } +int anope_event_error(char *source, int ac, char **av) +{ + if (ac >= 1) { + if (debug) { + alog("ERROR: %s", av[0]); + } + } + return MOD_CONT; +} + +int anope_event_notice(char *source, int ac, char **av) +{ + return MOD_CONT; +} + +int anope_event_sqline(char *source, int ac, char **av) +{ + return MOD_CONT; +} + + #endif |