Browse Source

Update 'gmcommand.lua'

Updated to reflect current DSP command prefix.
master
atom0s 7 years ago
parent
commit
7b6a294a6c
  1. 8
      gmcommand.lua

8
gmcommand.lua

@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
_addon.author = 'atom0s';
_addon.name = 'gmcommand';
_addon.version = '3.0.0';
_addon.version = '3.0.1';
require 'common'
@ -34,9 +34,9 @@ require 'common' @@ -34,9 +34,9 @@ require 'common'
-- desc: Event called when a command was entered.
----------------------------------------------------------------------------------------------------
ashita.register_event('command', function(command, ntype)
-- Look for commands starting with @
if (command:startswith('@') or command:startswith('!')) then
AshitaCore:GetChatManager():QueueCommand('$' .. command:remove(1), 1);
-- Look for commands starting with @ or $..
if (command:startswith('@') or command:startswith('$')) then
AshitaCore:GetChatManager():QueueCommand('!' .. command:remove(1), 1);
return true;
end
return false;

Loading…
Cancel
Save