The . silences the command so there is no echo in the status window. It is not a text command.
Anyways, check this out. Same script jut written ... correctly?
on @$:TEXT:/(www\56|\57\57\56|\72\57\57|\43[a-zA-Z]www..com | www..org | www..net | www..tv | www..co.uk | www..biz)/iS::{
if ($nick !isop $chan) {
msg $chan $nick has been kicked due to advertisement
.kick $chan $nick you have been kicked due to advertisement, channel notified.
}
}