]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ident.cpp
Update wiki links to use HTTPS and point to the correct pages.
[user/henk/code/inspircd.git] / src / modules / m_ident.cpp
index f1c3b81fdebadb6e415533d47afe17b325c6815f..f0ced1db79789ba313711dc97defae384f1dc8b1 100644 (file)
@@ -362,7 +362,7 @@ class ModuleIdent : public Module
                /* wooo, got a result (it will be good, or bad) */
                if (isock->result.empty())
                {
-                       user->ident.insert(0, 1, '~');
+                       user->ident.insert(user->ident.begin(), 1, '~');
                        user->WriteServ("NOTICE Auth :*** Could not find your ident, using %s instead.", user->ident.c_str());
                }
                else
@@ -371,6 +371,7 @@ class ModuleIdent : public Module
                        user->WriteServ("NOTICE Auth :*** Found your ident, '%s'", user->ident.c_str());
                }
 
+               user->InvalidateCache();
                isock->Close();
                ext.unset(user);
                return MOD_RES_PASSTHRU;