From 26f84e25c4e54ed0596502eb83cc5815885b9f76 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 6 Jan 2007 23:08:59 +0000 Subject: Dont try and show idle time of remote opers in STATS P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6239 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_stats.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp index 5b11d33ed..a853914d4 100644 --- a/src/cmd_stats.cpp +++ b/src/cmd_stats.cpp @@ -122,7 +122,8 @@ void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user, string_lis { if ((*i->second->oper) && (!ServerInstance->ULine(i->second->server))) { - results.push_back(sn+" 249 "+user->nick+" :"+i->second->nick+" ("+i->second->ident+"@"+i->second->dhost+") Idle: "+ConvToStr(ServerInstance->Time() - i->second->idle_lastmsg)); + results.push_back(sn+" 249 "+user->nick+" :"+i->second->nick+" ("+i->second->ident+"@"+i->second->dhost+") Idle: "+ + (IS_LOCAL(user) ? ConvToStr(ServerInstance->Time() - i->second->idle_lastmsg) : "unavailable")); idx++; } } -- cgit v1.2.3