diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-03 15:30:36 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-03 15:30:36 +0000 |
commit | 9a97a0b3cfdcfed3807318d782010abc26051b45 (patch) | |
tree | 331fe334ea85d57c05ee38ae0040798d9eec957d /src | |
parent | 7a1217e97c083df916629dc2cc7deab7345fa9a8 (diff) |
Fix bug #1022, the problem was inspircd12 specific and the pseudo-clients will now respawn.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2142 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol/inspircd12.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index f47810c20..7cd040823 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -988,7 +988,9 @@ int anope_event_quit(const char *source, int ac, const char **av) int anope_event_kill(const char *source, int ac, const char **av) { - m_kill(av[0], av[1]); + User *u = find_byuid(av[0]); + BotInfo *bi = findbot(av[0]); + m_kill(u ? u->nick : (bi ? bi->nick : av[0]), av[1]); return MOD_CONT; } |