mIRC Homepage
Posted By: Sableye2 ban on private message - 12/06/06 01:17 PM
I was wondering if someone could help me get a script. Whenever someone private messages one of my bots, I would like that user to be banned for a certain amount of time. Help is appreciated.
Posted By: schaefer31 Re: ban on private message - 12/06/06 03:36 PM
Code:
on *:TEXT:*:?:{
  var %chan = [color:red]#Channel[/color]
  if ($me isop %chan) && ($nick ison %chan) {
    ban -ku[color:red]X[/color] %chan $nick 2
  }
}


Replace...
#Channel - The channel to ban from.
X - The duration of the ban, in seconds. It follows directly after the 'u', there is no space between the two.
© mIRC Discussion Forums