mIRC Homepage
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!
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.
© mIRC Discussion Forums