Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: replacing help data  (Read 3528 times)

0 Members and 1 Guest are viewing this topic.

MrStonedone

  • Anope User
  • Offline Offline
  • Posts: 17
replacing help data
« on: May 08, 2010, 05:07:08 PM »

im changing the workings of nickserv register but im trying to do purely in modules, no core edits, inside 8.something anope. im removing email and making that signify "irckey" a hash used to link up a nickserv account to our site's forum.

my question is can i add a new hook for help and have that overwrite the built in one, and ( seeing as how this is the 1st time something i coded for services that required help data so have no clue how to go about that ) how would I do that?
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: replacing help data
« Reply #1 on: May 08, 2010, 08:40:14 PM »

You don't use a hook, you essentially add help, over-riding the core help, in the same way you are adding the NickServ register command that will be used instead of the cores.

something like this:
Code: [Select]
c = createCommand("REGISTER", do_register, NULL, -1, -1, -1, -1, -1);
moduleAddCommand(NICKSERV, c, MOD_HEAD);
moduleAddHelp(c, ns_help_register);

so, moduleAddHelp is what you're after, you'd then need to write the ns_help_register function, hope that puts you on right path
Logged
Pages: [1]   Go Up