1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 15:56:39 +02:00

Allow identifying to other accounts using /nickserv id account pass

This commit is contained in:
Adam
2010-09-11 22:47:36 -04:00
parent 89c5b203c3
commit e30370af10
22 changed files with 28 additions and 42 deletions
+1 -1
View File
@@ -3455,7 +3455,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Sintaxis: IDENTIFY clau
Sintaxis: IDENTIFY [account] clau
Informa a %S que tu ets realment el propietari del teu nick.
Moltes comandes requereixen que t'identifiquis amb aquesta
+1 -1
View File
@@ -3536,7 +3536,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Syntax: IDENTIFY Passwort
Syntax: IDENTIFY [account] Passwort
Beweist %S, dass du wirklich der Besitzer dieses
Nicknamens bist. Viele Befehle erzwingen, dass
+2 -2
View File
@@ -373,7 +373,7 @@ NICK_UNGROUP_SUCCESSFUL
# IDENTIFY responses
NICK_IDENTIFY_SYNTAX
IDENTIFY password
IDENTIFY [account] password
NICK_IDENTIFY_FAILED
Sorry, identification failed.
NICK_IDENTIFY_SUCCEEDED
@@ -3430,7 +3430,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Syntax: IDENTIFY password
Syntax: IDENTIFY [account] password
Tells %S that you are really the owner of this
nick. Many commands require you to authenticate yourself
+1 -1
View File
@@ -3537,7 +3537,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Sintaxis: IDENTIFY clave
Sintaxis: IDENTIFY [account] clave
Informa a %S que tu eres realmente el dueño de tu nick.
Muchos comandos requieren que te autentifiques con este
+1 -1
View File
@@ -3580,7 +3580,7 @@ NICK_HELP_GROUP
Note: tous les pseudos du groupe ont le même mot de passe.
NICK_HELP_IDENTIFY
Syntaxe: IDENTIFY motdepasse
Syntaxe: IDENTIFY [account] motdepasse
Informe %S que vous êtes vraiment le propriétaire de
ce pseudo. Beaucoup de commandes nécessitent que vous soyez
+1 -1
View File
@@ -3563,7 +3563,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Óýíôáîç: IDENTIFY êùäéêü
Óýíôáîç: IDENTIFY [account] êùäéêü
ËÝåé óôïí %S áí åßóáé üíôïò ï êÜôï÷ïò áõôïý ôïõ øåõäþíõìïõ.
ÐïëëÝò åíôïëÝò áðáéôïýí íá êÜíåéò åíôïëÞ áíáãíþñéóçò, äçë ìå ôçí åíôïëÞ
+1 -1
View File
@@ -3482,7 +3482,7 @@ NICK_HELP_GROUP
a jelszava.
NICK_HELP_IDENTIFY
Syntax: IDENTIFY jelszó
Syntax: IDENTIFY [account] jelszó
Tudatja a %S-vel, hogy te vagy a tulajdonosa ennek a
nicknek. Jelszónak ugyanannak kell lennie amit a
+1 -1
View File
@@ -3444,7 +3444,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Sintassi: IDENTIFY password
Sintassi: IDENTIFY [account] password
Indica a %S che sei davvero il proprietario del nick.
Molti comandi richiedono che tu ti sia autentificato
+1 -1
View File
@@ -3519,7 +3519,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Gebruik: IDENTIFY wachtwoord
Gebruik: IDENTIFY [account] wachtwoord
Vertelt %S dat je echt de eigenaar van deze nick bent. Veel
commandos vereisen dat je jezelf identificeert met dit commando
+1 -1
View File
@@ -4499,7 +4499,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Sk³adnia: IDENTIFY has³o
Sk³adnia: IDENTIFY [account] has³o
Informuje %S, ¿e nick którego w³a¶nie u¿ywasz
nale¿y do Ciebie. Wiele komend wymaga identyfikacji
+1 -1
View File
@@ -3464,7 +3464,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Sintaxe: IDENTIFY senha
Sintaxe: IDENTIFY [account] senha
Identifica você ao %S como sendo dono do nick.
Muitos comandos exigem que você se identifique com este
+1 -1
View File
@@ -3459,7 +3459,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Ñèíòàêñèñ: IDENTIFY ïàðîëü
Ñèíòàêñèñ: IDENTIFY [account] ïàðîëü
Ïîçâîëÿåò âàì èäåíòèôèöèðîâàòüñÿ íà %S ê çàðåãèñòðèðîâàííîìó
ðàíåå íèêó. Áîëüøèíñòâî ñåðâèñíûõ êîìàíä, òàêèå êàê SET, OP, BAN
+1 -1
View File
@@ -3560,7 +3560,7 @@ NICK_HELP_UNGROUP
nick in your group.
NICK_HELP_IDENTIFY
Kullanýmý: IDENTIFY þifreniz
Kullanýmý: IDENTIFY [account] þifreniz
%S 'e kullandýðýnýz nickin gerçek sahibinin siz olduðunu
belirtir. Çoðu komut kullanýlmadan önce bu komutla
+1
View File
@@ -118,6 +118,7 @@ class CommandNSGroup : public Command
u->Login(na->nc);
FOREACH_MOD(I_OnNickGroup, OnNickGroup(u, target));
ircdproto->SetAutoIdentificationToken(u);
u->SetMode(NickServ, UMODE_REGISTERED);
Log(LOG_COMMAND, u, this) << "makes " << u->nick << " join group of " << target->nick << " (" << target->nc->display << ") (email: " << (!target->nc->email.empty() ? target->nc->email : "none") << ")";
notice_lang(Config->s_NickServ, u, NICK_GROUP_JOINED, target->nick.c_str());
+11 -8
View File
@@ -16,21 +16,21 @@
class CommandNSIdentify : public Command
{
public:
CommandNSIdentify(const Anope::string &cname) : Command(cname, 1, 1)
CommandNSIdentify(const Anope::string &cname) : Command(cname, 1, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
}
CommandReturn Execute(User *u, const std::vector<Anope::string> &params)
{
Anope::string pass = params[0];
NickAlias *na;
NickRequest *nr;
int res;
Anope::string nick = params.size() == 2 ? params[0] : u->nick;
Anope::string pass = params[params.size() - 1];
if (!(na = findnick(u->nick)))
NickAlias *na = findnick(nick), *this_na = findnick(u->nick);
if (!na)
{
if ((nr = findrequestnick(u->nick)))
NickRequest *nr = findrequestnick(nick);
if (nr)
notice_lang(Config->s_NickServ, u, NICK_IS_PREREG);
else
notice_lang(Config->s_NickServ, u, NICK_NOT_REGISTERED);
@@ -47,7 +47,7 @@ class CommandNSIdentify : public Command
notice_lang(Config->s_NickServ, u, NICK_ALREADY_IDENTIFIED);
else
{
res = enc_check_password(pass, na->nc->pass);
int res = enc_check_password(pass, na->nc->pass);
if (!res)
{
Log(LOG_COMMAND, u, this) << "and failed to identify";
@@ -69,6 +69,9 @@ class CommandNSIdentify : public Command
ircdproto->SendAccountLogin(u, u->Account());
ircdproto->SetAutoIdentificationToken(u);
if (this_na && this_na->nc == na->nc)
u->SetMode(NickServ, UMODE_REGISTERED);
u->UpdateHost();
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(u));
+1
View File
@@ -110,6 +110,7 @@ class NSResetPass : public Module
u->Login(na->nc);
ircdproto->SendAccountLogin(u, u->Account());
ircdproto->SetAutoIdentificationToken(u);
u->SetMode(NickServ, UMODE_REGISTERED);
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(u));
Log(LOG_COMMAND, u, &commandnsresetpass) << "confirmed RESETPASS to forcefully identify to " << na->nick;
-1
View File
@@ -291,7 +291,6 @@ class BahamutIRCdProto : public IRCDProto
if (!u->Account())
return;
u->SetMode(NickServ, UMODE_REGISTERED);
ircdproto->SendMode(NickServ, u, "+d %d", u->timestamp);
}
-2
View File
@@ -296,8 +296,6 @@ class InspIRCdProto : public IRCDProto
u->Account()->Shrink("authenticationtoken");
u->Account()->Extend("authenticationtoken", new ExtensibleItemRegular<Anope::string>(svidbuf));
u->SetMode(NickServ, UMODE_REGISTERED);
}
} ircd_proto;
-8
View File
@@ -308,14 +308,6 @@ class InspIRCdProto : public IRCDProto
return true;
}
void SetAutoIdentificationToken(User *u)
{
if (!u->Account())
return;
u->SetMode(NickServ, UMODE_REGISTERED);
}
} ircd_proto;
int anope_event_ftopic(const Anope::string &source, int ac, const char **av)
-8
View File
@@ -306,14 +306,6 @@ class InspIRCdProto : public IRCDProto
return true;
}
void SetAutoIdentificationToken(User *u)
{
if (!u->Account())
return;
u->SetMode(NickServ, UMODE_REGISTERED);
}
} ircd_proto;
int anope_event_ftopic(const Anope::string &source, int ac, const char **av)
-1
View File
@@ -387,7 +387,6 @@ class UnrealIRCdProto : public IRCDProto
if (!u->Account())
return;
u->SetMode(NickServ, UMODE_REGISTERED);
ircdproto->SendMode(NickServ, u, "+d %d", u->timestamp);
}
+1
View File
@@ -753,6 +753,7 @@ User *do_nick(const Anope::string &source, const Anope::string &nick, const Anop
user->UpdateHost();
do_on_id(user);
ircdproto->SetAutoIdentificationToken(user);
user->SetMode(NickServ, UMODE_REGISTERED);
Log() << Config->s_NickServ << ": " << user->GetMask() << " automatically identified for group " << user->Account()->display;
}