49
edits
m (Fixed 2 spelling errors.) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{userfunc}} | {{userfunc}} | ||
Add slash commands. | Add slash commands. | ||
SlashCmdList_AddSlashCommand(name, func, ...) | SlashCmdList_AddSlashCommand(name, func, ...) | ||
| Line 24: | Line 23: | ||
SLASH_MYADDON_SLASHCMD2 = '/ma' | SLASH_MYADDON_SLASHCMD2 = '/ma' | ||
==Code== | == Code == | ||
<pre>function SlashCmdList_AddSlashCommand(name, func, ...) | <pre>function SlashCmdList_AddSlashCommand(name, func, ...) | ||
SlashCmdList[name] = func | SlashCmdList[name] = func | ||
| Line 36: | Line 35: | ||
end | end | ||
end</pre> | end</pre> | ||