summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-06 23:08:59 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-06 23:08:59 +0000
commit26f84e25c4e54ed0596502eb83cc5815885b9f76 (patch)
treed17b48173dc1c65942eb6ba7c5e375684ce0e972 /src
parent41f946c9d05a790a57bbc5ffc2f04c4a8be9a17b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/cmd_stats.cpp3
1 files changed, 2 insertions, 1 deletions
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++;
}
}