plugins/commands.lua

changeset 159
7ca948b157df
parent 102
b7c9a3707e68
--- a/plugins/commands.lua	Tue Sep 22 14:51:42 2020 +0200
+++ b/plugins/commands.lua	Tue Sep 22 14:59:25 2020 +0200
@@ -1,5 +1,5 @@
 function riddim.plugins.commands(bot)
-	local command_pattern = "^%"..(bot.config.command_prefix or "@").."([%a%-%_%d]+)(%s?)(.*)$";
+	local command_pattern = "^%"..bot.config.command_prefix.."([%a%-%_%d]+)(%s?)(.*)$";
 
 	local direct_address_pattern = false;
 	if bot.config.nick then

mercurial