mIRC Homepage
Posted By: HICIOR mIRC is saying that i'm not a mod. - 27/07/15 08:05 PM
I wanted to make a command only for admins. I made it and it didnt work. So i made a basic command and the output is that i'm not an admin.

Code:
on *:TEXT:!modcheck:#: {
   if ($nick !isOP #) {
    msg $chan You are not a mod!
    return 
    }
   msg $chan You are a mod!
 }


Please help!
Posted By: Wims Re: mIRC is saying that i'm not a mod. - 28/07/15 02:05 AM
The code is correct, and if it says you're not an admin (well, technically, an op), it means the event actually triggers but that you are not op on the channel.

Please move this to the Script & popups section, and please tell us if this is Twitch related.
Posted By: HICIOR Re: mIRC is saying that i'm not a mod. - 28/07/15 07:05 PM
Yea, it is, Im the broadcaster so i should have the op.
Posted By: Plornt Re: mIRC is saying that i'm not a mod. - 28/07/15 08:34 PM
I suspect you are using mIRC for a IRC twitch bot from your previous comment?

Please have a look here and do the following if you are:

https://forums.mirc.com/ubbthreads.php/topics/254093/

Due to twitch not following the IRC spec 100% mIRC has no way of knowing if a user is an operator unless you issue the command listed in that thread to tell twitch's IRC to send you the required information.
Posted By: HICIOR Re: mIRC is saying that i'm not a mod. - 28/07/15 09:26 PM
Yes, i'm using it for twitch bot.
I followed the instructions from your tutorial and in Networks field i have only all networks and when im clicking add theres no twitch.
Posted By: HICIOR Re: mIRC is saying that i'm not a mod. - 28/07/15 09:31 PM
IT WORKED GUYS! THANKS
Posted By: Plornt Re: mIRC is saying that i'm not a mod. - 28/07/15 09:33 PM
Originally Posted By: HICIOR
Yes, i'm using it for twitch bot.
I followed the instructions from your tutorial and in Networks field i have only all networks and when im clicking add theres no twitch.


That tutorial assumes you have added the twitch server to your servers list. If you haven't you can add it via the servers list under Connect > Servers > Add.

Alternately if this bot is only going to ever be connected to twitch feel free to just use the "All Servers" option and instead of clicking add just type the command into the text box below (be sure perform on connect is ticked in the checkbox above still).
© mIRC Discussion Forums