[IRCServices Coding] srvcs 5
Finny Merrill
griever at t2n.org
Sat Dec 15 12:39:16 PST 2001
On Sat, 15 Dec 2001 v13 at priest.com wrote:
> On Saturday 15 December 2001 22:12, Finny Merrill wrote:
> > Command* lookup_cmd(Module* id, char* name)
> > will return the current Command* stucture for command name
> > which can then be removed and replaced, and you can call the function.
>
> Thanx. I got do_info() from
>
> (*(lookup_cmd(module_nickserv, "INFO")))->routine
personally I think this would be a safer way:
Command *temp;
temp = lookup_cmd(module_nickserv, "INFO);
temp->routine(...);
>
> and put my function there, which calls the old one before sending
> anything to the user and it worked.
>
> <<V13>>
> ------------------------------------------------------------------
> To unsubscribe or change your subscription options, visit:
> http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
>