Place in remotes
If you dont allow advertising in ur channels this could be handy, should anyone say any sites in ur channels then it will message ur staff room that someone maybe advertising. should you not want it to montior all chans the
on *:TEXT:*:#:{
should be changed to
on *:TEXT:*:#chan1,#chan2,#chan3 {
```mirc
on *:TEXT:*:#:{
if ($regex($1-,/[.](com|.\ com|.co\.uk|.co \. uk|.net|/.net )$/Si)) {
/msg #ops 2 Moderator to $chan please, Possible advertising by $nick
.close -m $nick
}
if ($regex($1-,/^(www\.|w\sw\s{1}|http:\/\/|.\co .\ uk)/Si)) {
/msg #ops 2 Moderator to $chan please, Possible advertising by $nick
.close -m $nick
}
}
@Jaystew: If I did offer my assistance, you surely made some "redundant" changes by yourself. This is all you need:
on *:TEXT:*:#: {
if ($regex($1-,/(https?:\/\/\w+|www\.\w+)|([.](\w+)$)/Si)) {
.omsg #ops 2 Moderator to $chan please; possible advertising by $nick
}
}
No second regex if statement needed. And you do not need close -m because this is not for PM.