I want to be able to enable or disable chat commands that are created by ChatCommandRegistrant.
The way I was thinking about it is this way
class PluginCommands : public ChatCommandClass
{
void Triggered(int ID,const TokenClass &Text,int ChatType)
{
if(!commandenabled{return;} /// here is what I added
}
}
The problem is, the command will still be loaded, which wastes memory.
It might just be me being anal because I have been programming limited memory in microcontrollers, and may not make a difference.
But is there a way to keep the complete class from loading.
[Updated on: Tue, 17 March 2009 13:16]
Report message to a moderator