X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-rpc-php.git/blobdiff_plain/8fd8402e655299a2f2e88e115767be4249f36a5d..2d5f74f2644425610ce48301309e5d727ccd7c61:/lib/Spamfilter.php diff --git a/lib/Spamfilter.php b/lib/Spamfilter.php index 723c370..103f455 100644 --- a/lib/Spamfilter.php +++ b/lib/Spamfilter.php @@ -57,7 +57,7 @@ class Spamfilter if (is_bool($response)) return false; - + if (property_exists($response, 'tkl')) return $response->tkl; return FALSE; @@ -99,6 +99,6 @@ class Spamfilter return $response->tkl; } - throw new Exception('Invalid JSON Response from UnrealIRCd RPC.'); + return false; // not found } }