View Single Post
10-17-12, 10:03 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
You would need to register for the CHAT_MSG_CHANNEL event. When it fires, check its arguments to find out if the received message is in a channel you care about (the channelNumber argument), and then loop over your table of messages and check the received message (the message argument) against each one. If you find a match, set your variable.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote