Anope IRC Services
Anope Development => Modules => Topic started by: Zoddo on June 05, 2014, 08:22:06 PM
-
Hi !
Firstly, sorry for my bad English.
I develop a module for myself and I would know which command is executed in the event OnPreCommand.
I don't find function to make it in the class Command
-
EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> ¶ms);
'command' is the command executed.
-
Yes, but how to know the command ? I don't find a method in the class Command to do so.
-
You mean source.command?
-
Oh, Thanks you! I didn't really pay attention to CommandSource class.