summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-31 19:08:23 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-31 19:08:23 +0000
commit60d587282916762da4c480657230a5a8d6abd409 (patch)
tree877ccbc772f70c4b3eeca11848aecbdb4073023f /src/modules
parent28e71778988aa2259248e68ff50ab3753df49b64 (diff)
Fix crash.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10768 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-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)
{