Thread: Slash Commands
View Single Post
Unread 10-13-11, 11:11 AM   #3
seebs
Super Moderator
Premium Member
Riftui Super Mod
AddOn Author - Click to view addons
Join Date: Jun 2011
Posts: 9
Command.Slash.Register yields a table into which you can insert things.

Do not assign to table.insert, that way lies madness.

x = Command.Slash.Register("foo")
table.insert(x, { function, addon_name, name })

BTW, my LibGetOpt offers a way to get some of this done automatically for you, and get your function called with the command line arguments, parsed out for your convenience.
seebs is offline   Reply With Quote