Removing ASCII from IRC - 28/07/14 02:27 PM
So this is my current script
On here, you will see that it just kinda looks for certain things and removes them. The problem is, we are getting more and more spam that I can't put in my script because things like this heart ❤ show up as a Square
Is their a way to have more symbols show up in the script, or have them offloaded into a Text File, but still have as many options as I do above. So, with this ❤ heart, I allow the users to type it in up to 4 times before the script will time them out, and yet in the same line they can post the @ symbol 10 times before getting timed out. Am I able to offload this amount of precision into a text file? Or just have a way to turn on Unicode? (Or like Java, where I can import the script)
Code:
ON @*:TEXT:*:#:{ if ($nick == JTV) { RETURN } if ($read(subscribers.txt,nw,$nick)) { return } if ($($+(%,reg.,$chan,.,$nick),2)) { RETURN } if ($($+(%,permit.,$nick),2)) { RETURN } IF ($nick isop #) { RETURN } if ($($+(%,spam1.,$nick),2)) { RETURN } var %regex = /(\!){10,}|(\❤){4,}|(\-){5,}|(\<3){5,}|(\@){10,}|(\#){5,}|(\$){6,}|(\%){5,}|(\^){5,}|(\&){3,}|(\(){4,}|(\-){5,}|(\_){6,}|(\=){5,}|(\+){5,}|(\,){5,}|(\.){10,}|(\<){5,}|(\>){5,}|(\/){3,}|(\?){8,}|(\;){4,}|(\:){5,}|(\’){5,}|(\”){5,}|(\[){5,}|(\{){5,}|(\]){5,}|(\\){5,}|(\|){5,}|(\~){5,}|(\`){5,}|(\░){1,}|(\ᴇ){1,}|(\ᴏ){1,}|(\ᴀ){1,}|(\ɪ){1,}|(\ᴜ){1,}|(\A){1,}|(\E){1,}|(\O){1,}|(\I){1,}|(\U){1,}|(\็){1,}/Sig if ($regex($1-,%regex)) { if ($($+(%,spamsym.,$nick),2)) { .timer[sym1] 1 1 msg # .timeout $nick 560 msg # $nick --> How about you don't do that. No posting mass symbol messages. (Timeout) unset %spamsym. $+ $nick On write timed_out.txt Symbol Spam: $nick $+ : $1- } } }
On here, you will see that it just kinda looks for certain things and removes them. The problem is, we are getting more and more spam that I can't put in my script because things like this heart ❤ show up as a Square
Is their a way to have more symbols show up in the script, or have them offloaded into a Text File, but still have as many options as I do above. So, with this ❤ heart, I allow the users to type it in up to 4 times before the script will time them out, and yet in the same line they can post the @ symbol 10 times before getting timed out. Am I able to offload this amount of precision into a text file? Or just have a way to turn on Unicode? (Or like Java, where I can import the script)