mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2015
Posts: 26
Z
zigress Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Sep 2015
Posts: 26
On Twitch, would this:

Code:
if ($me !isop $chan) { msg $chan test }


Work the same as this?

Code:
alias status { return $iif($msgtags(user-type).key == mod || $mid(#, 2-) == $me, $true) }

if (!$status) { msg $chan test }


The objective is to only allow the message go through if the user is a moderator in the channel.

Thanks in advance!

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
For Twitch both methods do the same, but in first one IN TWITCH in order to work you need to enable some CAP supports due connect, in the second it will work without these CAP's but remove the exclamation mark from '!isop' and '!$status' because that mark means the opposite from that you want to do.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard