1
0
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:
Sadie Powell
2025-02-14 20:33:13 +00:00
parent 84b0859e8d
commit 420f83bbbf
5 changed files with 96 additions and 26 deletions
+1 -1
View File
@@ -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"];
}