mIRC Homepage
Posted By: sigbin a little help plz? - 14/08/07 03:55 PM
is this correct? i edit what i found in this forum so im askin is this corect?
Code:
alias re.link return (?:\w+\:\/\/)?[\w\.]+\.(?:com|net|org|biz|us|ca|uk|ph|info)(?:[\w\/\%\.]*?)
alias re.mail return [\w.]+\@[\w.]+

on *:text:*:#channel:{
  if ($nick !isop $chan) {
    if ($regex($1,/ $+ $re.mail $+ /i)) {
      .kick # *!* $+ $address $+ * 1 75 no adds
    }
    elseif ($regex($1,/ $+ $re.link $+ /i)) {
      .kick # *!* $+ $address $+ * 1 75 no adds
    }
  }
}
Posted By: SladeKraven Re: a little help plz? - 14/08/07 09:24 PM
Well, haven't you tried it?
Posted By: sigbin Re: a little help plz? - 15/08/07 03:33 AM
if this was working im not posting here to ask help...
Posted By: Horstl Re: a little help plz? - 15/08/07 03:39 AM
Code:
.kick # *!* $+ $address $+ * 1 75 no adds
hum, why not
Code:
.kick # $nick no adds

If you want to perform a kickban combination (including a 75 seconds ban on *!*user@host.domain), use these two lines instead:
Code:
ban -u75 # $address($nick,1)
kick # $nick no adds
Posted By: deegee Re: a little help plz? - 15/08/07 04:44 AM
Originally Posted By: Horstl
If you want to perform a kickban combination (including a 75 seconds ban on *!*user@host.domain), use these two lines instead:
Code:
ban -u75 # $address($nick,1)
kick # $nick no adds


Or
Code:
  ban -ku75 # $nick 2 no ads
Posted By: Wims Re: a little help plz? - 15/08/07 06:44 AM
ban -ku75 # $nick 1 no addr

original code was :

ban -u75 # $address($nick,1)
kick # $nick no adds
Posted By: SladeKraven Re: a little help plz? - 15/08/07 08:25 AM
You asked if it was correct, the only way to find out would be to test the code yourself.
Posted By: sigbin Re: a little help plz? - 15/08/07 11:36 AM
iv tested it and i cant make it work... that why im askin if that code is correct... why bother posting here i can make my code work... sladekraven will you post here if your code is working? its the same with me i dont like posting in forum but these no way i can make my code work if there is a problem that i dont know...

sladekraven if your not helping why bother replying to my post? or if you dont like me to post here just delete my account here in mirc...
Posted By: RusselB Re: a little help plz? - 15/08/07 11:16 PM
In your original post, you would've been better to have said that you were having trouble getting the code to work, rather than asking if it was correct. A number of people have posted codes here asking if they were right, and just have been too lazy to test the codes themselves. This is what it looked like you were doing.

Now that we know differently, someone will probably be more than willing to assist you. I regret not being able to do so, due to my lack of knowledge regarding regex, which your code uses.
Posted By: deegee Re: a little help plz? - 16/08/07 12:27 AM
For one, you're only checking the first word for urls/emails (if ($regex($1,/ $+ $re.mail $+ /i))) when it should be $1-

Try this, a slight recode; changed the email expression a little (added a couple more valid chars) and changed the way the re.* aliases work.

Code:
alias re.link return $regex($1-,/(?:\w+\:\/\/)?[\w\.]+\.(?:com|net|org|biz|us|ca|uk|ph|info)(?:[\w\/\%\.]*?)/)
alias re.mail return $regex($1-,/(?:(?:[\w.%+-])+@(?:[\w-]+\.)+[a-z]{2,4})\b/i)
on @*:text:*:#channel:{
  if ($nick !isop #) && ($re.mail($1-) || $re.link($1-)) {
    ban -ku75 # $nick 1 no adds
  }
}

Posted By: sigbin Re: a little help plz? - 16/08/07 01:10 AM
thankz for the reminder... thankz for the reply
© mIRC Discussion Forums