mirror of
https://github.com/anope/anope.git
synced 2026-07-05 00:33:12 +02:00
Changed User::AutoID to always log in the user to the core, and to set usermode +r on users that should be. Fixes everyone being identified but not usermode +r on inspircd 1.2
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2985 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -159,7 +159,7 @@ class CoreExport User : public Extensible
|
||||
/** Auto identify the user to the given accountname.
|
||||
* @param account Display nick of account
|
||||
*/
|
||||
void AutoID(const char *acc);
|
||||
void AutoID(const std::string &account);
|
||||
|
||||
/** Login the user to a NickCore
|
||||
* @param core The account the user is useing
|
||||
|
||||
+8
-6
@@ -418,20 +418,22 @@ void User::CheckAuthenticationToken(const char *svid)
|
||||
/** Auto identify the user to the given accountname.
|
||||
* @param account Display nick of account
|
||||
*/
|
||||
void User::AutoID(const char *account)
|
||||
void User::AutoID(const std::string &account)
|
||||
{
|
||||
NickCore *tnc;
|
||||
NickAlias *na;
|
||||
NickCore *core = findcore(account.c_str());
|
||||
|
||||
if ((tnc = findcore(account)))
|
||||
if (core)
|
||||
{
|
||||
if ((na = findnick(this->nick)) && na->nc == tnc)
|
||||
this->Login(core);
|
||||
|
||||
NickAlias *na = findnick(this->nick);
|
||||
if (na && na->nc == core)
|
||||
{
|
||||
if (na->last_realname)
|
||||
delete [] na->last_realname;
|
||||
na->last_realname = sstrdup(this->realname);
|
||||
na->last_seen = time(NULL);
|
||||
this->Login(na->nc);
|
||||
this->SetMode(findbot(Config.s_NickServ), UMODE_REGISTERED);
|
||||
this->UpdateHost();
|
||||
check_memos(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user