]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_services_account.cpp
Fix silly oversight discovered by tra26 (thanks!) where the core tries to handle...
[user/henk/code/inspircd.git] / src / modules / m_services_account.cpp
index 283310621240c76ad5b52e195418d70b851ecd57..5c909eee05127b2ffc7336ca085156ff13d0a6bd 100644 (file)
@@ -164,8 +164,8 @@ class ModuleServicesAccount : public Module
                        return 0;
 
                std::string *account;
-               user->GetExt("accountname", account);
-               bool is_registered = !account->empty();
+               bool is_registered = user->GetExt("accountname", account);
+               is_registered = is_registered && !account->empty();
 
                if ((ServerInstance->ULine(user->nick.c_str())) || (ServerInstance->ULine(user->server)))
                {
@@ -219,8 +219,8 @@ class ModuleServicesAccount : public Module
                        return 0;
 
                std::string *account;
-               user->GetExt("accountname", account);
-               bool is_registered = !account->empty();
+               bool is_registered = user->GetExt("accountname", account);
+               is_registered = is_registered && !account->empty();
 
                if (chan)
                {