X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_services_account.cpp;h=ceba3a7bd7b2a53bcc893587829a1734e4110122;hb=92796ffe6430162a9cb70f1361aaa9ca64645c90;hp=283310621240c76ad5b52e195418d70b851ecd57;hpb=edeadd12cbec075ada70e71cd4287b519b7e9b47;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index 283310621..ceba3a7bd 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * InspIRCd: (C) 2002-2009 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -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) {