diff options
author | Adam <Adam@anope.org> | 2013-12-30 10:50:15 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-12-30 10:50:15 -0500 |
commit | f21b40bfb40ec1b2ceb78d548fc95397f2d1fc3e (patch) | |
tree | 0d7a1c8be0e6747c2c7e68c78c5bd93ce4674103 /modules/extra/m_ldap_authentication.cpp | |
parent | 567700b5a66865c27d08a961733b75cb96cfc7d2 (diff) |
Set last_realname in m_ldap_authentication when new nicks are registered
Diffstat (limited to 'modules/extra/m_ldap_authentication.cpp')
-rw-r--r-- | modules/extra/m_ldap_authentication.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp index 5db8382ee..7c9593dff 100644 --- a/modules/extra/m_ldap_authentication.cpp +++ b/modules/extra/m_ldap_authentication.cpp @@ -103,6 +103,7 @@ class IdentifyInterface : public LDAPInterface if (na == NULL) { na = new NickAlias(ii->req->GetAccount(), new NickCore(ii->req->GetAccount())); + na->last_realname = ii->user ? ii->user->realname : ii->req->GetAccount(); FOREACH_MOD(OnNickRegister, (ii->user, na)); BotInfo *NickServ = Config->GetClient("NickServ"); if (ii->user && NickServ) |