Website kick

By zak123 on Mar 29, 2009

Kicks when someone posts a link to a website.

any help would be appreciated :)

BTW, this is my first useful script ;p

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) { halt }
  msg $chan $nick has been kicked due to advertisement {
    .kick $chan $nick you have been kicked due to advertisement, channel notified. {
    }
  }
}

Comments

Sign in to comment.
blitzz   -  Jun 14, 2009

LOL

 Respond  
napa182   -  Jun 13, 2009

Weasel Said:

could have been a lot simpler

 on *TEXT*:#: {
 if ($1- == www.* || $1 == *http*) { kick # $nick no websites }

would work

=/ I really hope you are joking Weasel...

 Respond  
Weasel   -  Jun 13, 2009

could have been a lot simpler

 on *TEXT*:#: {
 if ($1- == www.* || $1 == *http*) { kick # $nick no websites }

would work

 Respond  
blitzz   -  Jun 12, 2009

Yes. I can see he/she edited it a little

 Respond  
Jethro   -  Jun 12, 2009

If you read the comments at http://www.hawkee.com/snippet/5792/, you'll see where zak based this script from. It's perfectly ok he took it from a source and changed it trying to perfect the code itself.

At least he should have the courtesy to say where I obtain it from. People shall never boast themselves and be pretentious to claim something that they've never done. It's the ethical principle that counts.

 Respond  
sunslayer   -  Jun 12, 2009

based on ur other 2 snippets posted, http://www.hawkee.com/snippet/5855/ and http://www.hawkee.com/snippet/5570/, i find it quite hard to believe that u made this yourself

 Respond  
PuNkTuReD   -  Jun 12, 2009

ripped more like it

BTW, this is my first useful script ;p
implies he made it.
1/10

 Respond  
blitzz   -  Jun 12, 2009

Oic. So he just reposting it.

 Respond  
Jethro   -  Jun 12, 2009

zak123 didn't make the script. That script was by me and I posted it in a comment reply awhile back. He must have seen it and then he grabbed the code and posted it as his "own snippet." He changed it around.

However, that code is a little buggy. Here is my updated version if interested:

on @*:TEXT:*:#: { 
  if ($nick !isop #) { var %x = /(http:\/\/\w+|www\.\w+)/i, %y = /(\x23{2}\w+)/i, %z = /(\x23\w+)/i
    if ($regex($1-,%x)) { kick # $nick You've been kicked due to URL spam. }
    if (!$regex($1-,%y)) { kick # $iif($regex($1-,%z),$nick You've been kicked for channel spam.) }
  }
}
 Respond  
blitzz   -  Jun 12, 2009

on $*:TEXT:

TO

on $:TEXT::#:{ if (www.....

Some people/founder don't wanna "website kick" in their channel.

 Respond  
TravisT   -  Jun 12, 2009

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

 Respond  
zak123   -  Jun 12, 2009

Late response incoming..

zak123, if you didn't create the script, or contribute a certain amount to it, then you've got to give credit to the person; if you don't have the exact link to the comment, then at least mention the person's name. :/

I meant to respond to: Not only does it kick for url link, it also kicks for channel spam...because of the \43[a-zA-Z]

 Respond  
clEEn   -  May 18, 2009

nice script, how do i add that some websites can be posted?

 Respond  
Kirby   -  Apr 05, 2009

I would also advise you to use

!kick

rather than

.kick

.
The ! takes mIRC's default alias, because many people usually have a custom command for /kick. I also don't see why you even need to "silence" the kick there either.

 Respond  
PuNkTuReD   -  Apr 05, 2009

a few unnecessary brackets in there

 Respond  
Kirby   -  Apr 05, 2009

Yup yup, I just didn't include that in the intro.
zak123, if you didn't create the script, or contribute a certain amount to it, then you've got to give credit to the person; if you don't have the exact link to the comment, then at least mention the person's name. :/

 Respond  
zak123   -  Apr 05, 2009

Yup yup, I just didn't include that in the intro.

 Respond  
Jethro   -  Mar 30, 2009

Deja vu...That script looks like the one I posted before...
You got bracket misplaced, unneeded stuff, and here is the edit:

on $*:TEXT:/(www\56|\57\57\56|\72\57\57|\43[a-zA-Z]|.com|.net|.tv|.co.uk|.biz|.info|.org)/iS:*: {
  if ($nick !isop $chan) { kick $chan $nick you have been kicked due to advertisement, channel notified. }
}

P.S. Not only does it kick for url link, it also kicks for channel spam...because of the \43[a-zA-Z]

 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.