Having some TStime problems
Posted: Thu Feb 23, 2006 6:28 pm
This has been solved, please look at my reply below
Special thanks to WolfSage and w00t for helping me resolve it.
I am working on an extended bantype module. So far everything works just fine except that I can't call TStime() from my extban callback function.
When I try to compile with TStime in the function I get this error: "called object is not a function".
Here is the callback function:
Here is some of the code that calls the function when the extban is set (located in the module init function):
I know that the problem has something to do with the access to TStime() that 'req.conv_param' gives the function. I just don't know how to resolve it.
Thanks,
farklem
I am working on an extended bantype module. So far everything works just fine except that I can't call TStime() from my extban callback function.
When I try to compile with TStime in the function I get this error: "called object is not a function".
Here is the callback function:
Code: Select all
char *extban_modet_conv_param(char *para_in)
{
TS test = TStime();
return NULL;
}
Code: Select all
ExtbanInfo req;
memset(&req, 0, sizeof(ExtbanInfo));
req.flag = 't';
req.conv_param = extban_modet_conv_param;
Thanks,
farklem