X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/d843c1de2e8d7bd7b4080410a7c3060f04f59aa8..9e2a2ac021a33268908b8dd3ec1376f6bf8e0041:/Classes/class-message.php diff --git a/Classes/class-message.php b/Classes/class-message.php index 9bb6af2..ead30d8 100644 --- a/Classes/class-message.php +++ b/Classes/class-message.php @@ -2,28 +2,73 @@ class Message { - static function Fail($message) + static function Fail(...$message) { + // cater for arrays + if (is_array($message[0]) && !isset($message[1])) + $message = $message[0]; + ?> +