1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 08:13:13 +02:00

Don't unassociate accounts with users on nick changes

This commit is contained in:
Adam
2012-10-02 01:30:35 -04:00
parent e1d1d18288
commit f7aa837696
3 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -297,13 +297,14 @@ class NickServCore : public Module
/* If the new nick isnt registerd or its registerd and not yours */
if (!na || na->nc != u->Account())
{
ircdproto->SendLogout(u);
/* Remove +r, but keep an account associated with the user */
u->RemoveMode(NickServ, UMODE_REGISTERED);
this->mynickserv.Validate(u);
}
else
{
/* Reset +r and re-send account (even though it really should be set at this point) */
ircdproto->SendLogin(u);
if (!Config->NoNicknameOwnership && na->nc == u->Account() && na->nc->HasFlag(NI_UNCONFIRMED) == false)
u->SetMode(NickServ, UMODE_REGISTERED);