diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-09 22:33:00 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-09 22:33:00 +0000 |
commit | f07f92e30da4a0849b98d0bbeff926ffa51ecf0a (patch) | |
tree | 2af1bdf94835cae5c28e112373717987b80edd53 /src | |
parent | 594c161622bea1fe0fa9e56526b62e17ae2df7ff (diff) |
Fixed remote whoises on services clients on InspIRCd 1.2
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2542 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol/inspircd12.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/protocol/inspircd12.c b/src/protocol/inspircd12.c index 9a887b2d2..a116cd401 100644 --- a/src/protocol/inspircd12.c +++ b/src/protocol/inspircd12.c @@ -682,10 +682,14 @@ int anope_event_version(char *source, int ac, char **av) int anope_event_idle(char *source, int ac, char **av) { - Uid *ud = NULL; + Uid *ud; + BotInfo *bi; if (ac == 1) { - if (av[0]) ud = find_uid(av[0]); - send_cmd(ud ? ud->uid : source, "IDLE %s %ld 0", source, (long int) time(NULL)); + ud = find_nickuid(av[0]); + if (ud) { + bi = findbot(ud->nick); + send_cmd(ud->uid, "IDLE %s %ld %ld", source, start_time, bi ? time(NULL) - bi->lastmsg : 0); + } } return MOD_CONT; } |