Check for unavailable site nicknames in DomainStatusNetwork

This commit is contained in:
Evan Prodromou 2011-04-28 15:30:23 -07:00
parent 7ed3b9cf3f
commit ddead1e611

View File

@ -128,7 +128,14 @@ class DomainStatusNetworkPlugin extends Plugin
static function nicknameAvailable($nickname) static function nicknameAvailable($nickname)
{ {
$sn = Status_network::staticGet('nickname', $nickname); $sn = Status_network::staticGet('nickname', $nickname);
return empty($sn); if (!empty($sn)) {
return false;
}
$usn = Unavailable_status_network::staticGet('nickname', $nickname);
if (!empty($usn)) {
return false;
}
return true;
} }
static function nicknameForDomain($domain) static function nicknameForDomain($domain)