mirror of
https://github.com/anope/anope.git
synced 2026-07-08 13:23:13 +02:00
Use RPC error responses correctly.
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ class AnopeXMLRPC
|
||||
{
|
||||
$ret = $this->run("checkAuthentication", [$account, $pass]);
|
||||
|
||||
if ($ret && $ret["result"] == "Success") {
|
||||
if ($ret && array_key_exists("account", $ret)) {
|
||||
return $ret["account"];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user