For some reason I'm having some huge trouble with compiling modules. I'm running Windows XP SP2 and Anope 1.7.13. I've managed to get some select modules to compile and all... (others fail out because they are unable to find external links), but the ones that do compile have one strange flaw: They don't accept arguments.
Take for instance ircd_oper.c:
int my_os_oplist(User* u)
{
char* szSubcommand = 0;
char* szLogin = 0;
char* szPass = 0;
char* szType = 0;
POPERINFO p = NULL;
szSubcommand = strtok(NULL, " ");
if (!szSubcommand) {
notice_user(s_NickServ, u, "No Subcommand Specified");
Note that the syntax for the command is /NS OPLIST ADD <etc...>. The "No Subcommand Specified" code should only activate if there is no command after OPLIST. However, no matter how hard I type "ADD" or whatever, it always ends up executing that code. I've never written any modules so I don't know what could be causing it... but this is only an example. Every single module that requires arguments (os_qakill, etc) have this same problem.
Any ideas?
(If my information was vague or insufficient please let me know. In case it interests anybody, I also had trouble in the overall compile of Anope with the /lang section. Had to completely disable compiling of that folder.)
Thanks!
[Edited on 3-3-2006 by dragoonkain]