diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-31 19:08:23 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-31 19:08:23 +0000 |
commit | 60d587282916762da4c480657230a5a8d6abd409 (patch) | |
tree | 877ccbc772f70c4b3eeca11848aecbdb4073023f | |
parent | 28e71778988aa2259248e68ff50ab3753df49b64 (diff) |
Fix crash.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10768 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_services_account.cpp | 8 |
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) { |