diff options
| author | Adam <Adam@anope.org> | 2013-09-19 12:38:28 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-09-19 12:38:28 -0400 |
| commit | 5ce90ba7d153f10b1cef876fd4201087be9964ff (patch) | |
| tree | 9b7dbd8e96692eb66b047bc30612d26ae50b4af4 /modules/commands | |
| parent | 98bae827e1ab608c39f84c671f611f555797b29c (diff) | |
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
Diffstat (limited to 'modules/commands')
| -rw-r--r-- | modules/commands/ns_info.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
