[IRCServices] Hostserv for IRCServices 5.1.2

Luniz gluniz at luniz.dyndns.org
Sat Oct 20 10:50:21 PDT 2007


Here is what I have done so far to correct the errors.

Errors when trying to compile:

modules/misc/hostserv.c:391:48: error: macro "call_callback_2" passed 4
arguments, but takes just 3
modules/misc/hostserv.c: In function do_privmsg:
modules/misc/hostserv.c:391: error: call_callback_2 undeclared (first use in
this function)
modules/misc/hostserv.c:391: error: (Each undeclared identifier is reported
only once
modules/misc/hostserv.c:391: error: for each function it appears in.)

modules/misc/hostserv.c: At top level:
modules/misc/hostserv.c:418: error: redefinition of module_version
./modules.h:261: error: previous definition of module_version was here

modules/misc/hostserv.c:454: error: conflicting types for init_module
./modules.h:205: error: previous declaration of init_module was here

modules/misc/hostserv.c:471:52: error: macro "register_callback" passed 2
arguments, but takes just 1
modules/misc/hostserv.c: In function init_module:
modules/misc/hostserv.c:471: error: register_callback undeclared (first use
in this function)

modules/misc/hostserv.c:511:47: error: macro "unregister_callback" passed 2
arguments, but takes just 1
modules/misc/hostserv.c: In function exit_module:
modules/misc/hostserv.c:511: error: unregister_callback undeclared (first
use in this function)

Changes I have made:

From:
        if (call_callback_2(module, cb_command, u, cmd) <= 0)
To:
        if (call_callback_2(cb_command, u, cmd) <= 0)

From:
        cb_command   = register_callback(module, "command");
To:
        cb_command   = register_callback("command");

From:
        unregister_callback(module, cb_command);
To:
        unregister_callback(cb_command);

From:
        const int32 module_version = MODULE_VERSION_CODE;
To:
        /* const int32 module_version = MODULE_VERSION_CODE; */

From:
        unregister_callback(module, cb_command);
To:
        unregister_callback(cb_command);

Errors left:

modules/misc/hostserv.c:454: error: conflicting types for init_module
./modules.h:205: error: previous declaration of init_module was here
 

-----Original Message-----
From: ircservices-bounces at ircservices.za.net
[mailto:ircservices-bounces at ircservices.za.net] On Behalf Of Craig Edwards
Sent: Saturday, October 20, 2007 8:24 AM
To: IRC Services General Mailing List
Subject: Re: [IRCServices] Hostserv for IRCServices 5.1.2

If you are using the chatspike hostserv, by me or by w00t (Robin
Burchell) there is no updated version for ircservices 5.1 yet. (mainly
because we dont use it)

How difficult does it look to port it?

--Brain

Luniz wrote:
> I have just updated from ircservices-5.0.60 to ircservices-5.1.2 and 
> the hostserv module that I was using isnt compatible.  Does anyone 
> know if an updated version has been made, and if so where to get it?
> 
> ------------------------------------------------------------------
> To unsubscribe or change your subscription options, visit:
> http://lists.ircservices.za.net/mailman/listinfo/ircservices
------------------------------------------------------------------
To unsubscribe or change your subscription options, visit:
http://lists.ircservices.za.net/mailman/listinfo/ircservices