From 5ce90ba7d153f10b1cef876fd4201087be9964ff Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 19 Sep 2013 12:38:28 -0400 Subject: Fix not updating last_seen on expire nick for nicks with secure off. Don't show Expires in /ns info if the nick is online currently as it confuses people --- modules/commands/ns_info.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/commands') diff --git a/modules/commands/ns_info.cpp b/modules/commands/ns_info.cpp index 8fc5aa639..1800ac440 100644 --- a/modules/commands/ns_info.cpp +++ b/modules/commands/ns_info.cpp @@ -42,7 +42,10 @@ class CommandNSInfo : public Command /* Is the real owner of the nick we're looking up online? -TheShadow */ User *u2 = User::Find(na->nick); if (u2 && u2->Account() == na->nc) + { nick_online = true; + na->last_seen = Anope::CurTime; + } if (has_auspex || na->nc == source.GetAccount()) show_hidden = true; -- cgit