diff options
author | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-05 22:18:39 +0000 |
---|---|---|
committer | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-05 22:18:39 +0000 |
commit | 52f55ef9a01807e34b8dc7308d2c37b0f8cc994a (patch) | |
tree | 9ef21c67ce0085ace039f06fd708c4ebdea8adbb | |
parent | 06c26d468c02ff938da434c01f2eb8c5c31ef4d7 (diff) |
Reset +r on change to grouped nick
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2409 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | src/users.c | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -18,7 +18,6 @@ Legend: [x] Settable oper flags (split into types containing privs+commands, allow each oper to be set to a type, like we do with insp?) Outstanding issues: -- reset +r on change to grouped nick 1.9.2 ----- diff --git a/src/users.c b/src/users.c index 8f51da449..a1a932e41 100644 --- a/src/users.c +++ b/src/users.c @@ -771,7 +771,8 @@ User *do_nick(const char *source, const char *nick, const char *username, const ntmp->last_usermask = new char[user->GetIdent().length() + user->GetDisplayedHost().length() + 2]; sprintf(ntmp->last_usermask, "%s@%s", user->GetIdent().c_str(), user->GetDisplayedHost().c_str()); - + ircdproto->SendAccountLogin(user, user->nc); + ircdproto->SetAutoIdentificationToken(user); alog("%s: %s!%s@%s automatically identified for nick %s", s_NickServ, user->nick, user->GetIdent().c_str(), user->host, user->nick); } @@ -780,7 +781,8 @@ User *do_nick(const char *source, const char *nick, const char *username, const { if (nick_identified(user)) { - // XXX: I assume we need to reset +r on here. + ircdproto->SendAccountLogin(user, user->nc); + ircdproto->SetAutoIdentificationToken(user); } } |