summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-19 16:27:38 -0400
committerAdam <Adam@anope.org>2010-08-19 16:27:38 -0400
commit931b0777fbd961a4ca961ddfa763af92dcce946c (patch)
treeb49fd2d5ee2d2299e933a3561be6e81ffcb3664e /src/users.cpp
parentb180d5f975b3fd9a096a712adf9589c360831f72 (diff)
Changed the svid system back to using user timestamps for IRCds limited to just usermode +d. This allows us to keep people logged in once again when Anope is restarted.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp50
1 files changed, 3 insertions, 47 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 75596124c..91ba45d0c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -327,53 +327,6 @@ void User::Collide(NickAlias *na)
kill_user(Config->s_NickServ, this->nick, "Services nickname-enforcer kill");
}
-/** Check if the user should become identified because
- * their svid matches the one stored in their nickcore
- * @param svid Services id
- */
-void User::CheckAuthenticationToken(const Anope::string &svid)
-{
- NickAlias *na;
-
- if ((na = findnick(this->nick)))
- {
- Anope::string c;
- if (na->nc && na->nc->GetExtRegular("authenticationtoken", c))
- {
- if (!svid.empty() && !c.empty() && svid.equals_cs(c))
- /* Users authentication token matches so they should become identified */
- this->Login(na->nc);
- }
- }
-
- validate_user(this);
-}
-
-/** Auto identify the user to the given accountname.
- * @param account Display nick of account
- */
-void User::AutoID(const Anope::string &account)
-{
- NickCore *core = findcore(account);
-
- if (core)
- {
- this->Login(core);
-
- NickAlias *na = findnick(this->nick);
- if (na && na->nc == core)
- {
- na->last_realname = this->realname;
- na->last_seen = time(NULL);
- this->SetMode(NickServ, UMODE_REGISTERED);
- this->UpdateHost();
- check_memos(this);
-
- FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(this));
- }
- }
-}
-
/** Login the user to a NickCore
* @param core The account the user is useing
*/
@@ -382,6 +335,9 @@ void User::Login(NickCore *core)
this->Logout();
this->nc = core;
core->Users.push_back(this);
+
+ this->UpdateHost();
+ check_memos(this);
}
/** Logout the user