]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/blobdiff - lib/Spamfilter.php
Actually fix some return errors mentioned in previous commit
[irc/unrealircd/unrealircd-rpc-php.git] / lib / Spamfilter.php
index 723c3708bd336fa8ca4fcba10304eee728575b05..103f455804fbcfc69f7947bce6d97dec9d24a566 100644 (file)
@@ -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
     }
 }