problem with overwriting during install
- Added -b flag to install in make install, so src/ircd, INSTALL_CONFS,
src/modules/*.so and *.pem is backed up to name~ if already exists
+- Added Command *CommandAdd_Alias(Module *module, char *cmd, char *tok, int
+ (*func)(aClient*, aClient*, int, char**, char *sentcmd), unsigned char
+ params, int flags), which will add a command that gets the command that
+ the user sent along in "sentcmd".
extern Efunction *EfunctionDel(Efunction *cb);
Command *CommandAdd(Module *module, char *cmd, char *tok, int (*func)(aClient*, aClient*, int, char**), unsigned char params, int flags);
+Command *CommandAdd_Alias(Module *module, char *cmd, char *tok, int (*func)(aClient*, aClient*, int, char**, char *sentcmd), unsigned char params, int flags);
void CommandDel(Command *command);
int CommandExists(char *name);
Cmdoverride *CmdoverrideAdd(Module *module, char *cmd, iFP function);
return 0;
}
+Command *CommandAdd_Alias(Module *module, char *cmd, char *tok, int (*func)(aClient *cptr, aClient *sptr, int parc, char *parv[], char *sentcmd), unsigned char params, int flags) {
+ return CommandAdd(module, cmd, tok, (iFP) func, params, flags|M_ALIAS);
+}
+
+
Command *CommandAdd(Module *module, char *cmd, char *tok, int (*func)(), unsigned char params, int flags) {
Command *command;
std::map<std::string, void *> modules;
bool isModuleLoaded(const char *module);
bool isModuleLoading(const char *module);
+
+
};
implementation: