From 420f83bbbfd3bd99d9c099d61d647cc14039d55f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 14 Feb 2025 20:33:13 +0000 Subject: Use RPC error responses correctly. --- docs/RPC/xmlrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/RPC/xmlrpc.php b/docs/RPC/xmlrpc.php index 90f07a944..eaa22cec9 100644 --- a/docs/RPC/xmlrpc.php +++ b/docs/RPC/xmlrpc.php @@ -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"]; } -- cgit