]> jfr.im git - solanum.git/blobdiff - modules/m_help.c
modules: chase MsgBuf API change
[solanum.git] / modules / m_help.c
index 56d4b83559386c555dfbeb8a18aea5eb72b2c597..b27142c3bcaee9b062f98c1487a4d6a964f4d59a 100644 (file)
 #include "numeric.h"
 #include "send.h"
 #include "s_conf.h"
-#include "s_log.h"
+#include "logger.h"
 #include "parse.h"
 #include "modules.h"
 #include "hash.h"
 #include "cache.h"
 #include "irc_dictionary.h"
 
-static int m_help(struct Client *, struct Client *, int, const char **);
-static int mo_help(struct Client *, struct Client *, int, const char **);
-static int mo_uhelp(struct Client *, struct Client *, int, const char **);
+static int m_help(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int mo_help(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int mo_uhelp(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 static void dohelp(struct Client *, int, const char *);
 
 struct Message help_msgtab = {
@@ -57,10 +57,9 @@ DECLARE_MODULE_AV1(help, NULL, NULL, help_clist, NULL, NULL, "$Revision: 254 $")
 
 /*
  * m_help - HELP message handler
- *      parv[0] = sender prefix
  */
 static int
-m_help(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_help(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        dohelp(source_p, HELP_USER, parc > 1 ? parv[1] : NULL);
 
@@ -69,10 +68,9 @@ m_help(struct Client *client_p, struct Client *source_p, int parc, const char *p
 
 /*
  * mo_help - HELP message handler
- *      parv[0] = sender prefix
  */
 static int
-mo_help(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+mo_help(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        dohelp(source_p, HELP_OPER, parc > 1 ? parv[1] : NULL);
        return 0;
@@ -81,10 +79,9 @@ mo_help(struct Client *client_p, struct Client *source_p, int parc, const char *
 /*
  * mo_uhelp - HELP message handler
  * This is used so that opers can view the user help file without deopering
- *      parv[0] = sender prefix
  */
 static int
-mo_uhelp(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+mo_uhelp(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        dohelp(source_p, HELP_USER, parc > 1 ? parv[1] : NULL);
        return 0;