summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_services_account.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp
index 283310621..5c909eee0 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_services_account.cpp
@@ -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)
{