Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Non case-sensitive chat commands?
Non case-sensitive chat commands? [message #367682] Sat, 17 January 2009 22:02 Go to previous message
a000clown
Messages: 363
Registered: May 2005
Location: Canada
Karma:
Commander
So I have the most basic of chat commands:
class ExampleChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		Send_Message(255,255,255,StrFormat("Example.").c_str());
	}
};
ChatCommandRegistrant<ExampleChatCommand> ExampleChatCommandReg("!example;!EXAMPLE",CHATTYPE_ALL,0,GAMEMODE_ALL);

!example works
!EXAMPLE works

But what if I was typing fast and did !Example

I've been searching for a way to disable case-sensitivity for awhile but haven't found anything useful yet.
Any pointers would help a lot.

[Updated on: Sat, 17 January 2009 22:03]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Alternative to tiled textures?
Next Topic: Changing FONT in renegade
Goto Forum:
  


Current Time: Wed Dec 04 13:54:18 MST 2024

Total time taken to generate the page: 0.00590 seconds