mIRC Homepage
Posted By: estrong1 Per Channel Commands - 25/03/15 09:47 AM
Hi guys! I've been searching Google for awhile and I can't seem to find what I'm looking for.

How do you separate commands per channel.
If user A in channel X runs command !help it only show up in channel X, and if user B runs !teamspeak in channel Y it only displays in channel Y
Posted By: Nillen Re: Per Channel Commands - 25/03/15 11:52 AM
/help on text

This section of the help file can do triggers in different channels, but the easiest way is to use if statements.

/help if then else

Basic syntax:
if ($chan == CHANNEL1) { msg $chan The channel is CHANNEL1 so I'm doing that msg }
elseif ($chan == CHANNEL) { msg $chan Etc.. }
Posted By: Majeye Re: Per Channel Commands - 27/03/15 12:28 AM
Originally Posted By: estrong1
Hi guys! I've been searching Google for awhile and I can't seem to find what I'm looking for.

How do you separate commands per channel.
If user A in channel X runs command !help it only show up in channel X, and if user B runs !teamspeak in channel Y it only displays in channel Y


the # symbol is going to be your friend in this situation.
Posted By: estrong1 Re: Per Channel Commands - 27/03/15 10:42 PM
Thanks, Majeye that was it!
© mIRC Discussion Forums