mirror of
https://github.com/anope/anope.git
synced 2026-06-28 07:56:37 +02:00
Always show expire time for nicks in /ns info to opers, even if the user is online
Make Anope::strftime show "now" if the time is now Fix typo in nickalias.cpp for the type of the last_seen field, spotted by grawity
This commit is contained in:
+3
-1
@@ -362,8 +362,10 @@ Anope::string Anope::strftime(time_t t, const NickCore *nc, bool short_output)
|
||||
return buf;
|
||||
if (t < Anope::CurTime)
|
||||
return Anope::string(buf) + " " + Anope::printf(Language::Translate(nc, _("(%s ago)")), Duration(Anope::CurTime - t, nc).c_str(), nc);
|
||||
else
|
||||
else if (t > Anope::CurTime)
|
||||
return Anope::string(buf) + " " + Anope::printf(Language::Translate(nc, _("(%s from now)")), Duration(t - Anope::CurTime, nc).c_str(), nc);
|
||||
else
|
||||
return Anope::string(buf) + " " + Language::Translate(nc, _("(now)"));
|
||||
}
|
||||
|
||||
Anope::string Anope::Expires(time_t expires, const NickCore *nc)
|
||||
|
||||
Reference in New Issue
Block a user