mIRC Home    About    Download    Register    News    Help

Print Thread
#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.
Joined: Mar 2014
Posts: 52
P
Babel fish
Offline
Babel fish
P
Joined: Mar 2014
Posts: 52
you could make a script that checks for non english characters like äöü

Joined: Jul 2006
Posts: 4,162
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,162
This might be a bad idea because there are words used in the english language which come from others languages with accentued letter like "résumé"


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Mar 2014
Posts: 215
J
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
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.
Joined: Mar 2014
Posts: 215
J
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

Link Copied to Clipboard