]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_services_account.cpp
Introduce "X" snomask for remote *:line messages [patch by jackmcbarn]
[user/henk/code/inspircd.git] / src / modules / m_services_account.cpp
index ac71a12157a24a1f66ad740a3d774afd16335141..dea382452cc10ec3978fbcdc3b8bbe5462cceee6 100644 (file)
@@ -254,9 +254,9 @@ class ModuleServicesAccount : public Module
                // check if its our metadata key, and its associated with a user
                if (dest && (extname == "accountname"))
                {
-                       if (!extdata.empty())
+                       std::string *account = accountname.get(dest);
+                       if (account && !account->empty())
                        {
-                               std::string *account = accountname.get(dest);
                                trim(*account);
 
                                if (IS_LOCAL(dest))