PVT "CAPTCHA"

By ChanZin on Apr 07, 2010

This is a script that that forces the user to type a few random digits to talk with you in pvt. :-)

I had nothing to do and decided to do this. I know some people think it makes no sense. Use it if you want. :-P

Turn on:
/pvtc on
Turn off:
/pvtc on

on ^*:open:?:*:{
  if (%pvtc == on && $left($nick,1) != *) {
    if (!%pvtc_can_ [ $+ [ $nick ] ]) {  
      if (%pvtc_type_ [ $+ [ $nick ] ]) {
        if (%pvtc_ignored_ [ $+ [ $nick ] ]) { .halt }
        elseif ($strip($1) == %pvtc_type_ [ $+ [ $nick ] ]) {
          .unset %pvtc_type_ [ $+ [ $nick ] ]
          .msg $nick  [Auto Message]: 4Digits match!3 You may now talk with 7 $+ $me $+ 3 $+ !
          .set -eu600 %pvtc_can_ [ $+ [ $nick ] ] x
          .halt
        }
        elseif ($strip($1) isnum) {
          .inc -eu120 %pvtc_fail_ [ $+ [ $nick ] ]
          if (%pvtc_fail_ [ $+ [ $nick ] ] == 3) {
            .set -eu300 %pvtc_ignored_ [ $+ [ $nick ] ] x
            .msg $nick  [Auto Message]: 4You failed 3 times! You must to wait 5 minutes to try again.
            .halt
          }
          .set -eu600 %pvtc_type_ [ $+ [ $nick ] ] $rand(10000,99999)
          .msg $nick  [Auto Message]: 4Digits don't match!3 Type the new digits.
          .msg $nick  [Auto Message]:  $+ %pvtc_type_ [ $+ [ $nick ] ] $+ 
          .halt
        }
        else {
          .inc -eu120 %pvtc_fail_ [ $+ [ $nick ] ]
          if (%pvtc_fail_ [ $+ [ $nick ] ] == 3) {
            .set -eu300 %pvtc_ignored_ [ $+ [ $nick ] ] x
            .msg $nick  [Auto Message]: 4You failed 3 times! You must to wait 5 minutes to try again.
            .halt
          }
          .set -eu600 %pvtc_type_ [ $+ [ $nick ] ] $rand(10000,99999)
          .msg $nick  [Auto Message]: 4Digits only, please!3 Type the new digits.
          .msg $nick  [Auto Message]:  $+ %pvtc_type_ [ $+ [ $nick ] ] $+ 
          .halt
        }
      }
      else {
        .set -eu600 %pvtc_type_ [ $+ [ $nick ] ] $rand(10000,99999)
        .msg $nick  [Auto Message]: 3Anti-Spam System!
        .msg $nick  [Auto Message]: 3Type the following digits to talk with 7 $+ $me $+ 3 in pm.
        .msg $nick  [Auto Message]:  $+ %pvtc_type_ [ $+ [ $nick ] ] $+ 
        .halt
      }
    }
    else {
      .unset %pvtc_can_ [ $+ [ $nick ] ]
    }
  }
}

alias pvtc { .set %pvtc $+(o,$iif($pos($$1,on,1),n,ff)) }

Comments

Sign in to comment.
ChanZin   -  Jun 28, 2010

Updated =)

@plasmo, thanks for you idea.

 Respond  
plasmo   -  Jun 26, 2010

should have something for failed attempts. say 3 failed attempts
and then blocked for 5mins
because i can just keep typing anything

and itll just keep spamming back
[13:58:06] [plasmo] asdasdad
[13:58:08] [bot] [Auto Message]: Digits only, please! Type the new digits.

[13:58:12] [plasmo] sdasdadasdas
[13:58:13] [bot] [Auto Message]: Digits only, please! Type the new digits.

[13:58:15] [plasmo] sdfsdfsdf
[13:58:18] [bot] [Auto Message]: Digits only, please! Type the new digits.

 Respond  
FordLawnmower   -  Apr 07, 2010

Cool idea ChanZin :)
Can't wait to see what you think of next.

 Respond  
Jethro   -  Apr 07, 2010

Actually you can reduce the size of the private open event by using the && operators in the sequence of your if statements.

For the switch alias, though, you can do this:

alias pvtc { set %pvtc $+(o,$iif($pos($$1,on,1),n,ff)) }
 Respond  
Sasha   -  Apr 07, 2010

Very nice and original idea ChanZin, ty.

 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.