From f21b40bfb40ec1b2ceb78d548fc95397f2d1fc3e Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 30 Dec 2013 10:50:15 -0500 Subject: Set last_realname in m_ldap_authentication when new nicks are registered --- modules/extra/m_ldap_authentication.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/extra/m_ldap_authentication.cpp') 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) -- cgit