The eR Times: The Chat Segregation

Day 1,190, 08:11 Published in Brazil Argentina by OH MY GOTH

The eR Times: The Chat Segregation

Hello Dear readers,
Are you tired of receiving spam in your query (private messages)?
Do you want to put an end to this spam apocalypse?
Then this tutorial will help you out a bit!

Today i will explain how to easily install an anti-spam query system for your IRC; which will ask the PMer (the person who sends you a pm/query/private message) for a 5 digits code in order to be able to speak to you.

First thing to do is press ALT+R while having your mIRC as an active window, and this window will pop-up:



After this, make sure you've got your tab REMOTE selected.
Then, you will need to go to Files > New in order to add a new REMOTE.
Once you have created a new remote, add THIS CODE INTO IT (just copy/paste from here):
on ^*😮pen:?😘:{
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 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 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 ] ]
}
}
}

Now press OK and you're done!
Sender side snapshot:

Receiver side snapshot:

Notice: Only AFTER the PMer has successfully completed the 5-digits challenge you will RECEIVE THE MESSAGE (so if he first pms you saying "hello" before completing the challenge, you won't receive it).
Notice 2: A maximum of 3 wrong codes can be delivered; after that, they get blocked for 5 minutes, after that they will be able to try it again.