mirror of
https://github.com/anope/anope.git
synced 2026-06-26 13:16:38 +02:00
NICK_REG_PLEASE_WAIT and NICK_GROUP_PLASE_WAIT now show the seconds until you can register/group again
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2556 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ class CommandNSGroup : public Command
|
||||
if (!(target = findnick(nick)))
|
||||
notice_lang(s_NickServ, u, NICK_X_NOT_REGISTERED, nick);
|
||||
else if (time(NULL) < u->lastnickreg + NSRegDelay)
|
||||
notice_lang(s_NickServ, u, NICK_GROUP_PLEASE_WAIT, NSRegDelay);
|
||||
notice_lang(s_NickServ, u, NICK_GROUP_PLEASE_WAIT, (NSRegDelay + u->lastnickreg) - time(NULL));
|
||||
else if (u->nc && (u->nc->flags & NI_SUSPENDED))
|
||||
{
|
||||
alog("%s: %s!%s@%s tried to use GROUP from SUSPENDED nick %s", s_NickServ, u->nick, u->GetIdent().c_str(), u->host, target->nick);
|
||||
|
||||
@@ -251,7 +251,7 @@ class CommandNSRegister : public CommandNSConfirm
|
||||
if (NSForceEmail && !email)
|
||||
this->OnSyntaxError(u);
|
||||
else if (time(NULL) < u->lastnickreg + NSRegDelay)
|
||||
notice_lang(s_NickServ, u, NICK_REG_PLEASE_WAIT, NSRegDelay);
|
||||
notice_lang(s_NickServ, u, NICK_REG_PLEASE_WAIT, (u->lastnickreg + NSRegDelay) - time(NULL));
|
||||
else if ((na = findnick(u->nick)))
|
||||
{
|
||||
/* i.e. there's already such a nick regged */
|
||||
|
||||
Reference in New Issue
Block a user