diff options
author | Sadie Powell <sadie@witchery.services> | 2025-02-14 20:33:13 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-02-14 20:54:06 +0000 |
commit | 420f83bbbfd3bd99d9c099d61d647cc14039d55f (patch) | |
tree | 115782ae78b734c9913f7e808770cc90b3f5b6f2 /docs/RPC | |
parent | 84b0859e8dec22a03fa42b822146d7666058c557 (diff) |
Use RPC error responses correctly.
Diffstat (limited to 'docs/RPC')
-rw-r--r-- | docs/RPC/xmlrpc.php | 2 |
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"]; } |