mirror of
https://github.com/anope/anope.git
synced 2026-07-05 08:53:12 +02:00
Tell users when their nicks expire in /ns glist and /ns info
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
Anope Version 1.9.3
|
||||
--------------------
|
||||
A Tell users when their nicks expire in /ns glist and /ns info
|
||||
|
||||
Anope Version 1.9.2
|
||||
--------------------
|
||||
|
||||
+3
-3
@@ -807,9 +807,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d nicknames en el grup.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (expires in %s)
|
||||
%s (expires in %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -825,9 +825,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d Nicknamen in der Gruppe.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (wird in %s auslaufen)
|
||||
%s (wird in %s auslaufen)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
+3
-3
@@ -790,9 +790,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d nicknames in the group.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (expires in %s)
|
||||
%s (expires in %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -810,9 +810,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d nicknames en el grupo.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (expires in %s)
|
||||
%s (expires in %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -817,9 +817,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d pseudos dans le groupe.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (expire le %s)
|
||||
%s (expire le %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -805,9 +805,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d øåõäþíõìá ìÝóá óôçí ïìÜäá.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (expires in %s)
|
||||
%s (expires in %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
+3
-3
@@ -802,9 +802,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d nicknév van a csoportban.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (expires in %s)
|
||||
%s (expires in %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER válaszok
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -792,9 +792,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d nick nel gruppo.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (scade tra %s)
|
||||
%s (scade tra %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -809,9 +809,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d nicks in de groep.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (expires in %s)
|
||||
%s (expires in %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -1019,10 +1019,10 @@ NICK_GLIST_FOOTER
|
||||
%d nicków w grupie.
|
||||
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
%s (wygasa za %s)
|
||||
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (wygasa za %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -811,9 +811,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
%d nicks no grupo.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (expira em %s)
|
||||
%s (expira em %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -792,9 +792,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
Êîëè÷åñòâî íèêîâ â ãðóïïå: %d
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (èñòåêàåò %s)
|
||||
%s (èñòåêàåò %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
@@ -812,9 +812,9 @@ NICK_GLIST_HEADER_X
|
||||
NICK_GLIST_FOOTER
|
||||
Grupta %d nick var.
|
||||
NICK_GLIST_REPLY
|
||||
%c%s
|
||||
NICK_GLIST_REPLY_ADMIN
|
||||
%c%s (expires in %s)
|
||||
%s (expires in %s)
|
||||
NICK_GLIST_REPLY_NOEXPIRE
|
||||
%s (does not expire)
|
||||
|
||||
# RECOVER responses
|
||||
NICK_RECOVER_SYNTAX
|
||||
|
||||
+6
-8
@@ -182,16 +182,14 @@ class CommandNSGList : public Command
|
||||
for (i = 0; i < nc->aliases.count; ++i)
|
||||
{
|
||||
NickAlias *na2 = static_cast<NickAlias *>(nc->aliases.list[i]);
|
||||
if (na2->nc == nc)
|
||||
|
||||
if (!(wont_expire = na2->HasFlag(NS_NO_EXPIRE)))
|
||||
{
|
||||
if (!(wont_expire = na2->HasFlag(NS_NO_EXPIRE)))
|
||||
{
|
||||
expt = na2->last_seen + Config.NSExpire;
|
||||
tm = localtime(&expt);
|
||||
strftime_lang(buf, sizeof(buf), finduser(na2->nick), STRFTIME_DATE_TIME_FORMAT, tm);
|
||||
}
|
||||
notice_lang(Config.s_NickServ, u, u->Account()->IsServicesOper() && !wont_expire ? NICK_GLIST_REPLY_ADMIN : NICK_GLIST_REPLY, wont_expire ? '!' : ' ', na2->nick, buf);
|
||||
expt = na2->last_seen + Config.NSExpire;
|
||||
tm = localtime(&expt);
|
||||
strftime_lang(buf, sizeof(buf), finduser(na2->nick), STRFTIME_DATE_TIME_FORMAT, tm);
|
||||
}
|
||||
notice_lang(Config.s_NickServ, u, wont_expire ? NICK_GLIST_REPLY_NOEXPIRE : NICK_GLIST_REPLY, na2->nick, buf);
|
||||
}
|
||||
notice_lang(Config.s_NickServ, u, NICK_GLIST_FOOTER, nc->aliases.count);
|
||||
}
|
||||
|
||||
+4
-7
@@ -171,13 +171,10 @@ class CommandNSInfo : public Command
|
||||
notice_lang(Config.s_NickServ, u, NICK_INFO_NO_EXPIRE);
|
||||
else
|
||||
{
|
||||
if (u->Account()->IsServicesOper())
|
||||
{
|
||||
expt = na->last_seen + Config.NSExpire;
|
||||
tm = localtime(&expt);
|
||||
strftime_lang(buf, sizeof(buf), finduser(na->nick), STRFTIME_DATE_TIME_FORMAT, tm);
|
||||
notice_lang(Config.s_NickServ, u, NICK_INFO_EXPIRE, buf);
|
||||
}
|
||||
expt = na->last_seen + Config.NSExpire;
|
||||
tm = localtime(&expt);
|
||||
strftime_lang(buf, sizeof(buf), finduser(na->nick), STRFTIME_DATE_TIME_FORMAT, tm);
|
||||
notice_lang(Config.s_NickServ, u, NICK_INFO_EXPIRE, buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user