Skip to content
MSN Addons

Code help

A TG007 community discussion started by Nsw_Grant.

Discussion 4 posts
Page 1 of 1
Open
Topic #2595 · 4 published posts · 592 views

hello there i need the programm or the coding so in a room if some one posts urls the bot kicks them saying please dont past urls

try something like,

 

on *:TEXT:*http://*:#: {
kick $chan $nick Please don't post URLs
}
on *:TEXT:*www.*:#: {
kick $chan $nick Please don't post URLs
}

 

The very young do not always do as they are told

Surprised you asked and didnt rip someone elses...Samie :|

#noads on
on @*:text:*:#:{ 
 if ($nick !isowner $chan) && ($nick !isop $chan) && (!$regex($1-,/\.(?:mp3|ram|rm)/)) && ($regex($1-,/((?:ftp:\/\/|https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)|(irc:\/\/[^<>\.\s]+(?:\.[^/<>\.\s]+)+(?:\/[^/<>\.\s]*)?\/?(?![^\s\x2c\.]))|(aim:goim\?screenname=[^\s&]+(?:&message=[^\s&=]+)?)/g)) { 
   access $chan add deny $fulladdress 6
   kick $chan $nick [-Please dont post URLS $nick -]
 } 
} 
on @*:action:*:#:{ 
 if ($nick !isowner $chan) && ($nick !isop $chan) && (!$regex($1-,/\.(?:mp3|ram|rm)/)) && ($regex($1-,/((?:ftp:\/\/|https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)|(irc:\/\/[^<>\.\s]+(?:\.[^/<>\.\s]+)+(?:\/[^/<>\.\s]*)?\/?(?![^\s\x2c\.]))|(aim:goim\?screenname=[^\s&]+(?:&message=[^\s&=]+)?)/g)) { 
   access $chan add deny $fulladdress 6
   kick $chan $nick [-Please dont post URLs $nick -]
 } 
} 
on @*:notice:*:#:{ 
 if ($nick !isowner $chan) && ($nick !isop $chan) && (!$regex($1-,/\.(?:mp3|ram|rm)/)) && ($regex($1-,/((?:ftp:\/\/|https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)|(irc:\/\/[^<>\.\s]+(?:\.[^/<>\.\s]+)+(?:\/[^/<>\.\s]*)?\/?(?![^\s\x2c\.]))|(aim:goim\?screenname=[^\s&]+(?:&message=[^\s&=]+)?)/g)) { 
   access $chan add deny $fulladdress 6
   kick $chan $nick [- Please dont post URLs $nick -]
 } 
}
#noads end

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256