From 60d587282916762da4c480657230a5a8d6abd409 Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 31 Oct 2008 19:08:23 +0000 Subject: Fix crash. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10768 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_services_account.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules') 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) { -- cgit v1.2.3