mIRC Home    About    Download    Register    News    Help

Print Thread
#252155 25/03/15 09:47 AM
Joined: Jan 2015
Posts: 2
E
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Jan 2015
Posts: 2
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

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
/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.. }


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jan 2014
Posts: 107
M
Vogon poet
Offline
Vogon poet
M
Joined: Jan 2014
Posts: 107
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.

Joined: Jan 2015
Posts: 2
E
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Jan 2015
Posts: 2
Thanks, Majeye that was it!


Link Copied to Clipboard