mIRC Home    About    Download    Register    News    Help

Print Thread
Anti-Advertising Script #122497 11/06/05 02:50 PM
Joined: Jan 2005
Posts: 11
P
PunkDud3 Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Jan 2005
Posts: 11
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

Re: Anti-Advertising Script #122498 11/06/05 02:56 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Code:
on 1:TEXT:*#*:#tinci:{
 [color:red] if ($nick isop $chan) { return } [/color] 
  kick $chan $nick [@@@ [censored] OFF SPAMER @@@] 
  ban $chan $nick 2
}
  


I refuse to engage in a battle of wits with an unarmed person. wink
Re: Anti-Advertising Script #122499 11/06/05 02:58 PM
Joined: Jan 2005
Posts: 11
P
PunkDud3 Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Jan 2005
Posts: 11
Thanks a lot mate.

smile

Re: Anti-Advertising Script #122500 12/06/05 12:12 AM
Joined: Sep 2004
Posts: 200
I
IR_n00b Offline
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
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.