mIRC Home    About    Download    Register    News    Help

Print Thread
#256245 31/12/15 10:56 PM
Joined: Dec 2015
Posts: 36
N
Netct25 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Dec 2015
Posts: 36
I am hoping someone can help me with this. I am trying to make it to where they can't kick other mods, but if they are a mod and are trying to kick a legitimate user it goes through with the command because they have moderator privileges. Any help with this would be much appreciate. For example, if ($nick isop #) && $$2(variable I have set for the user) !isop #) { is basically what I am trying to do, but it isn't working.

Thanks,
Netct





Code:
on *:TEXT:!kick *:#: {
  if ($$2 == $remove(#,$chr(35))) { msg # You can't kick the streamer. Kappa | return }
  if ($nick == $$2) { msg # You can't kick yourself! Kappa | return }
  if ($nick isop #) { msg # You can't kick other mods! FailFish | return }
 if ($nick isop #) {
    var %nick = $$2
    msg $chan /timeout %nick  
    msg $chan /me $capital(%nick) was timed out from the chat for 10 minutes. Please consider following rules next time. $capital(%nick) $+ !
  } 
  else { msg $chan You aren't a moderator. DansGame } 

Last edited by Netct25; 31/12/15 11:07 PM.
Joined: Dec 2015
Posts: 36
N
Netct25 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Dec 2015
Posts: 36
Never mind I think I have resolved it. If anyone wants to know what I did. Here is my fixed code.

Code:
on *:TEXT:!kick *:#: {
  if ($$2 == $remove(#,$chr(35))) { msg # You can't kick the streamer. Kappa | return }
  if ($nick == $$2) { msg # You can't kick yourself! Kappa | return }
  if ($nick isop #) { msg # You can't kick other mods. DansGame }
  if ($nick isop # && $$2 !isop #) {
    if ($nick !isop #) { msg # You're not a moderator DansGame }
    var %nick = $$2
    msg $chan /timeout %nick  
    msg $chan /me $capital(%nick) was timed out from the chat for 10 minutes. Please consider following rules next time. $capital(%nick) $+ !
  }
}


Joined: Oct 2014
Posts: 35
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Oct 2014
Posts: 35
Code:
if ($nick isop #) { msg # You can't kick other mods. DansGame }


is supposed to be
Code:
if ($2 isop #) { msg # You can't kick other mods. DansGame }


Matti

Link Copied to Clipboard