- Code: Select all
on *:TEXT:+links on:#: {
if ($nick isop $chan) {
msg $chan Links are now on. You may not post any links. If you do you will be kicked.
set %links on
}
}
on *:TEXT:+links off:#: {
if ($nick isop $chan) {
msg $chan Links are now off. You may post any links IF the owner allows it. If the owner dosen't allow it you will be kicked.
set %links off
}
}
on *:text:*.com*:#: {
if (%links == on) {
set %linknick $nick
msg ChanServ kick $chan %linknick
}
}
on *:text:*.org*:#: {
if (%links == on) {
set %linknick $nick
msg ChanServ kick $chan %linknick
}
}
on *:text:*.tv*:#: {
if (%links == on) {
set %linknick $nick
msg ChanServ kick $chan %linknick
}
}
on *:text:*.net*:#: {
if (%links == on) {
set %linknick $nick
msg ChanServ kick $chan %linknick
}
}
on *:text:*.co*:#: {
if (%links == on) {
set %linknick $nick
msg ChanServ kick $chan %linknick
}
}
Just paste this into the Remote tab and it's all done.
To turn on links do +links on and to turn off links do +links off
To add more endings to kick such as .ly just add in this
- Code: Select all
on *:text:*.ly*:#: { <----- Here is were i added the new ending :)
if (%links == on) {
set %linknick $nick
msg ChanServ kick $chan %linknick
}
}
I haven't added the allow certain links like GeekShed.net and it won't kick. I will update this topic once i do.
Hope you like it