Bug - Fixed space circumvents command limit in chat_clan

Just came across something interesting.
Code:
chat_clan(" /veteran Hello!");
allowed me to chat into public channels, which is something that, judging from the code, is an effect not desired.
 
Last edited by a moderator:

Theraze

Active member
So... in the various places where it does startswith on chat commands, would we want to first run the buffer through a trim? So it would do sender.trim.startsWith( "/" ) and bufferKey.trim.startsWith( "/" ) and message.trim.startsWith( "/" ) and the like...?
 

Grotfang

Developer
So... in the various places where it does startswith on chat commands, would we want to first run the buffer through a trim? So it would do sender.trim.startsWith( "/" ) and bufferKey.trim.startsWith( "/" ) and message.trim.startsWith( "/" ) and the like...?

Not sure which files you are looking at, but since we already check for specific entries for recipient in RuntimeLibrary, I'm just trimming the message in chat_clan.

r8922
 
Top