1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 12:53:14 +02:00

Added options:nonicknameownership config option

This commit is contained in:
Adam
2011-10-14 12:20:07 -04:00
parent 53275c362c
commit ddc3c2f38c
25 changed files with 231 additions and 181 deletions
+5 -3
View File
@@ -261,16 +261,18 @@ class InspIRCdProto : public IRCDProto
send_cmd("", "ENDBURST");
}
void SetAutoIdentificationToken(User *u)
void SendLogin(User *u)
{
if (!u->Account())
return;
Anope::string svidbuf = stringify(u->timestamp);
u->Account()->Extend("authenticationtoken", new ExtensibleString(svidbuf));
}
void SendLogout(User *u)
{
}
};
class ChannelModeFlood : public ChannelModeParam
@@ -324,7 +326,7 @@ class InspircdIRCdMessage : public IRCdMessage
if (na && svidbuf && *svidbuf == params[0])
{
user->Login(na->nc);
if (na->nc->HasFlag(NI_UNCONFIRMED))
if (!Config->NoNicknameOwnership && na->nc->HasFlag(NI_UNCONFIRMED) == false)
user->SetMode(findbot(Config->NickServ), UMODE_REGISTERED);
}
else if (nickserv)