mIRC Home    About    Download    Register    News    Help

Print Thread
#248751 21/10/14 11:43 PM
Joined: Oct 2014
Posts: 1
I
Mostly harmless
OP Offline
Mostly harmless
I
Joined: Oct 2014
Posts: 1
For some reason I can't get this to work. It works fine until I try to make it a mod only command. What's weird is it was working fine yesterday but not today. I haven't changed it at all either.

Code:
on *:text:!on:#: {
  if ($nick !isop #) return 
  .timer.timername 0 1500 msg # test
}

on *:text:!off:#: {
  if ($nick !isop #) return 
  .timer.timername off
}


Any help would be greatly appreciated.

Joined: Oct 2014
Posts: 49
Ameglian cow
Offline
Ameglian cow
Joined: Oct 2014
Posts: 49
This should fix your problem, I have also added a line so that you know the bot has started your timer.

Code:
on *:text:!on:#: {
  if ($nick !isop #) { return }
  else {
    msg # Announcements are starting 
    .timer.timername 0 1500 msg # test 
  }
}

on *:text:!off:#: {
  if ($nick !isop #) { return }
  else { 
    msg # Announcements are stopping
    .timer.timername off 
  }
}



You could also change it from using
Code:
if ($nick !isop #) { return }

to
Code:
if ($nick != YOURNICKHERE) { return }

So it will respond to only your name even if you aren't OP.


Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
That won't fix anything, it's functionally the same.

Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
Is this for twitch.tv? If so, twitch often doesn't tell mirc who is an op. You'll need to either accept it not working all the time or collect your own list of mods to compare to.


Link Copied to Clipboard