From 8e011bbb783df2c646f479e7b02989f9165ed7c1 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 12 Aug 2013 15:44:28 -0400 Subject: Respond to remote whois on inspircd for users on us that aren't service bots --- modules/protocol/inspircd12.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/protocol') diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 0098ae90b..40cb465a1 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -1039,6 +1039,12 @@ struct IRCDMessageIdle : IRCDMessage BotInfo *bi = BotInfo::Find(params[0]); if (bi) UplinkSocket::Message(bi) << "IDLE " << source.GetSource() << " " << Anope::StartTime << " " << (Anope::CurTime - bi->lastmsg); + else + { + User *u = User::Find(params[0]); + if (u && u->server == Me) + UplinkSocket::Message(u) << "IDLE " << source.GetSource() << " " << Anope::StartTime << " 0"; + } } }; -- cgit