summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-14 20:33:13 +0000
committerSadie Powell <sadie@witchery.services>2025-02-14 20:54:06 +0000
commit420f83bbbfd3bd99d9c099d61d647cc14039d55f (patch)
tree115782ae78b734c9913f7e808770cc90b3f5b6f2 /docs
parent84b0859e8dec22a03fa42b822146d7666058c557 (diff)
Use RPC error responses correctly.
Diffstat (limited to 'docs')
-rw-r--r--docs/RPC/xmlrpc.php2
1 files changed, 1 insertions, 1 deletions
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"];
}