View Single Post
08-06-18, 05:31 PM   #6
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
Try:
Code:
SLASH_SERVANT1 = "/fs"
SlashCmdList.SERVANT = function(input)
	local command, link = input:match("^(%w+)%s+(.+)$")

	print(command)
	print(link)
end
If command will never contain numbers then you can change %w+ to %a+ for just letters (as outlined here).
  Reply With Quote