Hello,
We have been using the misc_sqlcmd module for a little while now with success. Since the latest updates to the core code, the module will no longer build and spits out some errors. I know the module coder hasn't been around so I'm hoping I can get some assistance from anyone here to possibly fix the code for the new anope. The errors I am receiving are as follows:
misc_sqlcmd_nick.c: In function ‘sqlcmd_handle_nickreg’:
misc_sqlcmd_nick.c:107: error: incompatible types in assignment
misc_sqlcmd_nick.c: In function ‘sqlcmd_handle_nickconf’:
misc_sqlcmd_nick.c:164: error: incompatible types in assignment
For those of you without the code, I have included some segments of the code that it mentions. I do not know any C so sorry if I missed something that might be needed to assist in this issue. The last line in each code block is the line it mentions in the error.
NickRequest *nr = NULL, *anr = NULL;
--snip--
nr = makerequest(av[0]);
nr->passcode = sstrdup(passcode);
nr->password = sstrdup(pass);
NickRequest *nr = NULL;
NickAlias *na = NULL;
--snip--
pass = sstrdup(nr->password);
if (nr->email)
email = sstrdup(nr->email);
na = makenick(nr->nick);
if (na) {
len = strlen(pass);
na->nc->pass = smalloc(PASSMAX);
Thank you very much to anyone who can assist with this!!