Hello and thanks in advance
I'm not a complete new guy in scripting, I'm also following a programming study, so you don't have to explain it in 'newb' language just saying :P
What I'm trying to do is:
I have a variable %command.SOMETHING
there are about 10/20 there, but more can be created by OP's.
what I want to do is when someone types !commands, is display a list of all commands (thus a list of all variables starting with %command)
what it needs to display, is SOMETHING, so the second part of the variable, not the text the variable contains.
so if I have the following commands:
%command.!woop msg $chan WOOPWOOP
%command.!test msg $chan THIS IS A TEST
%command.!slap msg $chan /me slaps $nick
%command.!123 msg $chan random command
it should display
the commands are: !woop, !test, !slap, !123
Thanks
edit: all I need is the code for getting the variables, not whole "on *:text" stuff