• Welcome to Valhalla Legends Archive.
 

Bad Words.

Started by Yegg, September 19, 2004, 01:00 PM

Previous topic - Next topic

Yegg

I was wondering if ne1 could help show me what to do to stop people from trying to make an account that contains words that are marked as "bad". Like when ur using the actual game client if u type in fuck or blizzard or update, it considers it a bad word, i've gotten my bot to recognize some words but it makes them case sensative, and this wouldn't help. does ne1 know the proper way to go about doing this?

Newby

Battle.net will send you a response back if you try to create an account with an illegal word in it. So you don't have to. ;)
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

BaDDBLooD

#2
You recieve a Byte in 0x3D, the value for Banned word is "3"
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

Laff

although it does send you back an error code, if you wanted to check it client side before sending all you have to do is either lcase or ucase both comparisons to make it case insensitive.

ie: let's say you want to censor "blah" and all of it's variants - some psuedocode would look like this -

if (lcase(pw) == "blah")
  fail();
else
  success();

that way it would lcase "BlAh" or "Blah" or "bLAH" or whatever and compare it to "blah".  hope this helps in future problems if you run into them again.

Yegg

lol, sorry but my bot runs off csb, i wusn't thinking about the server automatically bringing back a response, if i used bnls or something like that, but im gonna use the lcase commands, hopefully that'll fix the problem.

tA-Kane

Quote from: Yegg on September 19, 2004, 03:31 PMmy bot runs off csb, i wusn't thinking
Best quote ever.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

DeTaiLs

lol i had soda in my mouth when i read that now i need to clean off my screen and keyboard



Newby

#7
Quote from: tA-Kane on September 19, 2004, 09:07 PM
Quote from: Yegg on September 19, 2004, 03:31 PMmy bot runs off csb, i wusn't thinking
Best quote ever.
You kick ass. Your title should be "Master of taking things out of context". ;)

EDIT -- <3
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

Dyndrilliac

Quote from: Laff on September 19, 2004, 02:52 PM
although it does send you back an error code, if you wanted to check it client side before sending all you have to do is either lcase or ucase both comparisons to make it case insensitive.

ie: let's say you want to censor "blah" and all of it's variants - some psuedocode would look like this -

if (lcase(pw) == "blah")
  fail();
else
  success();

that way it would lcase "BlAh" or "Blah" or "bLAH" or whatever and compare it to "blah".  hope this helps in future problems if you run into them again.

That's not neccessary.
If InStr(UsernameVariableHere, "BadWordHere") <> 0 Then Exit Sub
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

Stealth

You should pass the vbTextCompare argument to InStr if you want to ignore case. vbBinaryCompare, the default, IS case-sensitive.
- Stealth
Author of StealthBot

Blaze

Quote from: tA-Kane on September 19, 2004, 09:07 PM
Quote from: Yegg on September 19, 2004, 03:31 PMmy bot runs off csb, i wusn't thinking
Best quote ever.

Shouldn't it be

my bot runs off csb, i wusn't thinking...

So people know he didn't finish his sentance there?
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

tA-Kane

Quote from: Kk)Blaze(kK on September 21, 2004, 04:04 PM
Quote from: tA-Kane on September 19, 2004, 09:07 PM
Quote from: Yegg on September 19, 2004, 03:31 PMmy bot runs off csb, i wusn't thinking
Best quote ever.
Shouldn't it be

my bot runs off csb, i wusn't thinking...

So people know he didn't finish his sentance there?
If you want to do it that way, then it would be like this:

Quote...my bot runs off csb, i wusn't thinking...

It was not only not the end of the sentence, but not the beginning either.

* tA-Kane stops useless chatter on this subject
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com