1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 14:56:37 +02:00

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
This commit is contained in:
Adam-
2009-10-09 22:33:00 +00:00
parent 594c161622
commit f07f92e30d
2 changed files with 9 additions and 4 deletions
+7 -3
View File
@@ -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;
}