mIRC Home    About    Download    Register    News    Help

Print Thread
Removing Non-English #246926 14/07/14 06:19 AM
Joined: Mar 2014
Posts: 65
E
Exuviax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
Random question, is it possible to have a script that will look for non English words and kick the $nick for it?


I do things with stuff that makes other things do stuff.
Re: Removing Non-English [Re: Exuviax] #246937 14/07/14 03:34 PM
Joined: Mar 2014
Posts: 52
P
patrickplays Offline
Babel fish
Offline
Babel fish
P
Joined: Mar 2014
Posts: 52
you could make a script that checks for non english characters like

Re: Removing Non-English [Re: Exuviax] #246939 14/07/14 03:44 PM
Joined: Jul 2006
Posts: 3,890
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,890
This might be a bad idea because there are words used in the english language which come from others languages with accentued letter like "rsum"


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Re: Removing Non-English [Re: Wims] #246944 14/07/14 05:12 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
not to sure how to do this, but you could make it remove them by doing !== in the IF statement and the characters it checker dfor would be all characters on your keyboard (qwertyuiop[{]}\|asdfghjkl;:'"zxcvbnm,<.>/?`~1!2@3#4$5%6^7&8*9(0)-_=+)
i literally just pressed every key on my keyboard with any shifts :P


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Re: Removing Non-English [Re: judge2020] #246958 15/07/14 05:58 AM
Joined: Mar 2014
Posts: 65
E
Exuviax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
Is their a way to check how many, so like

If sentence !== qwertyuiopasdfghjklzxcvbnm,<.>/?;:'"[{]}1234567890-=!@#$%^&*()_+

Then check if it has this thing that isn't equal to that more then 5 times. If it does

Kick them


I do things with stuff that makes other things do stuff.
Re: Removing Non-English [Re: Exuviax] #247031 19/07/14 12:01 PM
Joined: Mar 2014
Posts: 215
J
judge2020 Offline
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
here's an twitch emote spam thing, it works similar to the way you want it to be by checking a list of good characters, not sure if it's 100% working
Code:
on *:text:*:#:{
  var %e (YOUR ALLOWED CHARACTERS)

  var %re /( $+ $replacex(%e,$chr(32),|,/,\/,$chr(40),$+(\,$chr(40)),$chr(41),$+(\,$chr(41)),\,\\,|,\|,],\],[,\[) $+ )/Sig

  if !$regex($1-,%re) >= 6 { 
    msg $nick  ENGLISH PLEASE | (YOUR KICK COMMAND)
  }
}


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball