mIRC Homepage
Posted By: PunkDud3 Anti-Advertising Script - 11/06/05 02:50 PM
I wrote this:

on 1:TEXT:*#*:#tinci:/kick $chan $nick [@@@ [censored] OFF SPAMER @@@] | /ban $chan $nick 2

So it bans everyone that writes "#". How do I make it not to ban OPs ?

Thanks.

smile
Posted By: CtrlAltDel Re: Anti-Advertising Script - 11/06/05 02:56 PM
Code:
on 1:TEXT:*#*:#tinci:{
 [color:red] if ($nick isop $chan) { return } [/color] 
  kick $chan $nick [@@@ [censored] OFF SPAMER @@@] 
  ban $chan $nick 2
}
  
Posted By: PunkDud3 Re: Anti-Advertising Script - 11/06/05 02:58 PM
Thanks a lot mate.

smile
Posted By: IR_n00b Re: Anti-Advertising Script - 12/06/05 12:12 AM
Code:
on 1:TEXT:*#*:#tinci:{
  if ($nick !isop $chan) ban -k # $nick 2 [@@@ [censored] OFF SPAMER @@@]
}
  

would be better, and
Code:
on 1:TEXT:*#*:#tinci:{
if ($eval(#,0) isin $remove($1-,#tinci)) ban -k # $nick 2 [@@@ [censored] OFF SPAMER @@@]
}

the one above dosent kick if you say #tinci, but it will if you say somthing else that dosent start with #tinci, but will still kick you you say '#tincy COME JOIN #<channel>'
would be best.
© mIRC Discussion Forums