From 19039ef70352e7e92470aa32376d9578025e6993 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Sat, 28 May 2022 00:07:46 +0400 Subject: [PATCH] Fixed a bug i guess --- libraries/classes/command.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/classes/command.lua b/libraries/classes/command.lua index 7786c23..08f59e8 100644 --- a/libraries/classes/command.lua +++ b/libraries/classes/command.lua @@ -7,7 +7,7 @@ local command = class("Command") local acl = import("classes.command-acl") local discordia = import("discordia") function command:__init(name,callback) - assert(name:match("^[-_%w]+$"),"Name can only contain alphanumeric characters, underscores or dashes") + assert(name:match("^%S+$"),"Name cannot contain any space characters") self.rules = acl() self.name = name self.timer = discordia.Date():toMilliseconds()