mIRC Home    About    Download    Register    News    Help

Print Thread
#259287 29/10/16 04:57 PM
Joined: Oct 2016
Posts: 11
A
AsimUK Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2016
Posts: 11
Hello does anyone know of a script for when I want to timeout/ban a user I can just do !b username and it responds with timing out/banning the user?

AsimUK #259288 29/10/16 06:51 PM
Joined: Apr 2016
Posts: 86
B
Babel fish
Offline
Babel fish
B
Joined: Apr 2016
Posts: 86
Try these:

Code:
on *:text:!t:#CHANNELNAME:{
  if ($nick == $me) {
    msg $chan .timeout $1
  }
}


If you're using !b for banning:

Code:
on *:text:!b:#CHANNELNAME:{
  if ($nick == $me) {
    msg $chan .ban $1
  }
}

AsimUK #259298 01/11/16 04:06 PM
Joined: Aug 2008
Posts: 4
V
Self-satisified door
Offline
Self-satisified door
V
Joined: Aug 2008
Posts: 4
I belive it sould go like this:
ex You say to chan !b/!t nick Spammer have no place here.
Code:
on *:text:!t *:#:{
  if (($2 != $me)&&($2 !isop #)) {
    ban -ku300 $2 1 $3-
  }
}


Code:
on *:text:!b *:#:{
  if (($2 != $me)&&($2 !isop #)) {
    ban -k $2 1 $3-
  }
}

Last edited by Vladabgd; 01/11/16 04:18 PM.

Link Copied to Clipboard