Advertising Warn

By jaystew on Aug 07, 2009

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 
  } 
}

Comments

Sign in to comment.
Jethro   -  Aug 07, 2009

@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.

 Respond  
Atr   -  Aug 07, 2009

Not bad.. might not work if people post sites like google etc. though

 Respond  
jaystew   -  Aug 07, 2009

for got to mention thanks to Jethro_ for his help

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.