Hi,
For a Twitch stream, I've made a list command so the streamer can play matches with viewers in an organized fashion (!list, !join, etc).
However, since the channel now has subscribers, I was looking into restricting to the list to subscribers only through a on/off command.
Here are the two commands for on/off.
on *:text:!submodeoff:#: {
if ($nick isop #) {
if ($read(submode.txt,nw,disable)) {
write -c submode.txt
msg $chan /me : The list is now open to all viewers!. | return }
else msg $chan /me : $nick Sub mode is already off!
}
}
on *:text:!submodeon:#: {
if ($nick isop #) {
if ($read(submode.txt,nw,disable)) { msg $chan /me : $nick Sub mode is already on! | return }
else { write submode.txt disable
msg $chan /me : The list is now restricted to subscribers only. | return }
}
}
This works fine for me right now.
However, the only part I need help with is adding code that basically works like this: if $nick is a subscriber, then the following command can execute. I basically want it to run like the "isop" and "isreg" operators.
Any help would be appreciated. I'm a little new to mIRC so if you can explain something in rather simple terms, I would be extremely helpful.