]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
ident: Change idents with the ChangeIdent method.
authorPeter Powell <petpow@saberuk.com>
Fri, 1 Feb 2019 10:39:11 +0000 (10:39 +0000)
committerPeter Powell <petpow@saberuk.com>
Mon, 4 Feb 2019 09:16:40 +0000 (09:16 +0000)
src/modules/m_ident.cpp

index 302db0d97223676cb847d14da3b2ec4ae5ef566e..74f049b448a2fab5f007a0adf9438c0e4d0a6f5a 100644 (file)
@@ -368,11 +368,10 @@ class ModuleIdent : public Module
                }
                else
                {
                }
                else
                {
-                       user->ident = isock->result;
+                       user->ChangeIdent(isock->result);
                        user->WriteNotice("*** Found your ident, '" + user->ident + "'");
                }
 
                        user->WriteNotice("*** Found your ident, '" + user->ident + "'");
                }
 
-               user->InvalidateCache();
                isock->Close();
                ext.unset(user);
                return MOD_RES_PASSTHRU;
                isock->Close();
                ext.unset(user);
                return MOD_RES_PASSTHRU;