diff --git a/src/entryPoint.php b/src/entryPoint.php index bdfe533..4aa16b2 100644 --- a/src/entryPoint.php +++ b/src/entryPoint.php @@ -18,12 +18,13 @@ $handlers = array( new TestHandler() ); -function reply_user($room_id, $msgid, $message, $room_lang) +function reply_user(int $room_id, int $msgid, string $message, $room_lang): bool { global $handlers; foreach ($handlers as $handler) { if($handler->TryHandle($room_id, $msgid, $message, $room_lang)) { - break; + return true; } } + return false; } \ No newline at end of file