MineKhan icon indicating copy to clipboard operation
MineKhan copied to clipboard

So I made a text "bomb" (Please find a way to prevent this from being possible (i.e. a 690 character cap per message).)

Open ImaginaryNeon opened this issue 3 years ago • 5 comments

I accidentally found this, tested it a bit, realized it was too destructive, and posted this.

image

I'm not putting the text here cuz then It would prob take an hour to open this. (That and to prevent other people doing this.)

ImaginaryNeon avatar Nov 03 '21 19:11 ImaginaryNeon

Willard can find a way to constrain the amount of characters sent in a message to about, say 50? It would fix this bug almost immediately :P

Mist-Stego avatar Nov 09 '21 13:11 Mist-Stego

Well, I feel like 50 would be too little. We still want people to be able to say several sentences in a chat. I feel like 500 is better since that's the normal max characters for posting on many sites. (maybe 591 cuz haha pokemon #591 go brrrr)

ImaginaryNeon avatar Nov 09 '21 13:11 ImaginaryNeon

Hmmm, you are right.

I am a little curious about one particular thing however, how many characters would it take to crash the MineKhan website? If Willard's computer is the server, then it probably either would be dependent on...

  1. The capacity and capabilities that Willard's PC / Laptop has.
  2. (maybe?) The storage quota that Willard's browser recommends and abides by on all windows
  3. The capacity of Willard's RAM
  4. The capacity of JS and it's localStorage Quota.

EDIT: I feel like we should set the max amount of characters to around 150 due to the fact that no one is going to type any more than 50 words in a video game 🤔

Mist-Stego avatar Nov 09 '21 14:11 Mist-Stego

Btw, it moreso lagged when entering/(maybe iirc)exiting chat than just causing lag period.

ImaginaryNeon avatar Nov 09 '21 15:11 ImaginaryNeon

Also, you'd be suprised to see how many words people put into normal chat messages

ImaginaryNeon avatar Jan 13 '22 09:01 ImaginaryNeon

I capped it at I think 512 characters now.

Willard21 avatar Apr 14 '23 17:04 Willard21