diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/chanserv.c | 2 | ||||
-rw-r--r-- | src/hybrid.c | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/chanserv.c b/src/chanserv.c index 15c4df05e..831793927 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -741,7 +741,7 @@ void load_cs_dbase(void) ci->levels = scalloc(2 * CA_SIZE, 1); reset_levels(ci); for (j = 0; j < n_levels; j++) { - SAFE(read_int16(&tmp16)); + SAFE(read_int16(&tmp16, f)); if (j < CA_SIZE) ci->levels[j] = (int16) tmp16; } diff --git a/src/hybrid.c b/src/hybrid.c index 4ab654eeb..5ba665b6d 100644 --- a/src/hybrid.c +++ b/src/hybrid.c @@ -589,6 +589,18 @@ int anope_event_topic(char *source, int ac, char **av) return MOD_CONT; } +int anope_event_tburst(char *source, int ac, char **av) +{ + if (ac != 5) + return MOD_CONT; + + av[0] = av[1]; + av[1] = av[3]; + av[3] = av[4]; + do_topic(source, 4, av); + return MOD_CONT; +} + int anope_event_436(char *source, int ac, char **av) { if (ac < 1) @@ -623,6 +635,7 @@ void moduleAddIRCDMsgs(void) { m = createMessage("SERVER", anope_event_server); addCoreMessage(IRCD,m); m = createMessage("SQUIT", anope_event_squit); addCoreMessage(IRCD,m); m = createMessage("TOPIC", anope_event_topic); addCoreMessage(IRCD,m); + m = createMessage("TBURST", anope_event_tburst); addCoreMessage(IRCD,m); m = createMessage("USER", anope_event_null); addCoreMessage(IRCD,m); m = createMessage("WALLOPS", anope_event_null); addCoreMessage(IRCD,m); m = createMessage("WHOIS", anope_event_whois); addCoreMessage(IRCD,m); |