int do_modload(User * u, int ac, char **av) { if (ac < 1) { syntax_error(s_StatServ, u, "MODLOAD", STAT_MODULE_LOAD_SYNTAX); return MOD_CONT; } if (!queueModuleLoad(av[0], u)) { notice_lang(s_StatServ, u, STAT_MODULE_LOAD_FAIL, av[0]); } return MOD_CONT; }
/** * The /os modload command. * @param u The user who issued the command * @param MOD_CONT to continue processing other modules, MOD_STOP to stop processing. **/ int do_modload(User * u) { char *name; name = strtok(NULL, ""); if (!name) { syntax_error(s_OperServ, u, "MODLOAD", OPER_MODULE_LOAD_SYNTAX); return MOD_CONT; } if (!queueModuleLoad(name, u)) notice_lang(s_OperServ, u, OPER_MODULE_LOAD_FAIL, name); return MOD_CONT; }