mIRC Homepage
Posted By: newbie007 i hope this time somebody could help me - 30/09/06 09:46 AM
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?
Posted By: Garou Re: i hope this time somebody could help me - 30/09/06 11:29 AM
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.
}
}
}
hope this one works for you:
($wildtok(%s, #?, 0, 32) > 0)
Posted By: FNar Re: i hope this time somebody could help me - 30/09/06 09:44 PM
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.
  }
}
© mIRC Discussion Forums