summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-09 22:33:00 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-09 22:33:00 +0000
commitf07f92e30da4a0849b98d0bbeff926ffa51ecf0a (patch)
tree2af1bdf94835cae5c28e112373717987b80edd53
parent594c161622bea1fe0fa9e56526b62e17ae2df7ff (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
-rw-r--r--src/protocol/inspircd12.c10
-rw-r--r--version.log3
2 files changed, 9 insertions, 4 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;
}
diff --git a/version.log b/version.log
index 6428abc03..06277b741 100644
--- a/version.log
+++ b/version.log
@@ -9,9 +9,10 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="2"
VERSION_EXTRA="-svn"
-VERSION_BUILD="2537"
+VERSION_BUILD="2542"
# $Log$ # Changes since 1.8.2 Release
+#Revision 2542 - Fixed remote whoises on services clients on InspIRCd 1.2
#Revision 2537 - Added InspIRCd 1.2 protocol module into Windows makefiles and installer scripts
#Revision 2536 - Added InspIRCd 1.2 protocol module.
#Revision 2535 - Added option for delayed pseudo-client introduction. (Required for Insp 1.2)