View Single Post
08-31-09, 08:31 PM   #7
Waverian
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 188
Originally Posted by Akryn View Post
You still have to do something like he posted, because the keys of SlashCmdList don't necessarily correspond to the slash command text.
Most of the indices are pretty obvious, and if they're not you can browse the addon's code. If you need to call a large number of commands then sure, that method is probably fine. If you only need to call one or a few slash command handlers, why wrap it in a function that iterates through the entire table when you you can find the index anyway?

But whatever.
  Reply With Quote