mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2006
Posts: 6
N
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Sep 2006
Posts: 6
on @*:TEXT:*:#:{
if ($nick isop #) return
var %s = $strip($1-)
if (*www.* iswm %s) || (*http:* iswm %s) || (*ftp:* iswm %s) || ($chr(35) isin $1-) {
ban # $nick 11
kick # $nick 14You are not allowed to advertise in here.
}
}

=======================

it kick users that types # on channel
is there any code that you may give me
to kick only the users that says #word and not # only?

Joined: Aug 2006
Posts: 469
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Try this.

on @*:text:*:#:{
if ($nick !isop #) {
if ($istok($1-,http:,32) || $istok($1-,ftp:,32)) {
ban -k # $nick 2 14You are not allowed to advertise in here.
}
}
}

Joined: Sep 2006
Posts: 1
H
Mostly harmless
Offline
Mostly harmless
H
Joined: Sep 2006
Posts: 1
hope this one works for you:
($wildtok(%s, #?, 0, 32) > 0)

Joined: Mar 2004
Posts: 210
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Mar 2004
Posts: 210
If you mean # followed by something not a space:

Code:
on @*:TEXT:*:#:{
if ($nick isop #) return
if $regex($1-, #\w) {
  ban # $nick 11
  kick # $nick 14You are not allowed to advertise in here.
  }
}


Link Copied to Clipboard