]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/commit
All functions now return FALSE on failure, and then errno and error can
authorBram Matthys <redacted>
Fri, 6 Jan 2023 19:18:46 +0000 (20:18 +0100)
committerBram Matthys <redacted>
Fri, 6 Jan 2023 19:18:46 +0000 (20:18 +0100)
commit1a3fda209889ea4e5d449587665a71871c3c99a4
tree3dfd0983fafe5428e35685f05a653454f052ce82
parentb0cc6f5911eb37ef5cc87a5d621185783009fad7
All functions now return FALSE on failure, and then errno and error can
be checked, like:

if ($rpc->serverban()->add($user, $bantype, $duration, $reason))
    echo "SUCCESS\n";
else
    echo "FAILURE: $rpc->error ($rpc->errno)\n";
lib/Channel.php
lib/Connection.php
lib/ServerBan.php
lib/Spamfilter.php
lib/User.php