diff options
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index baf2912a5..42a00d2f2 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -1048,10 +1048,18 @@ int anope_event_away(char *source, int ac, char **av) int anope_event_kill(char *source, int ac, char **av) { + User *u = NULL; + Uid *ud = NULL; + if (ac != 2) return MOD_CONT; - m_kill(av[0], av[1]); + if (UseTS6) { + u = find_byuid(source); + ud = find_nickuid(av[0]); + } + + m_kill(u ? u->nick : (ud ? ud->nick : av[0]), av[1]); return MOD_CONT; } |