]> jfr.im git - solanum.git/blobdiff - modules/m_chghost.c
send: implement partial support for outbound tags (enough for account-tag as a testcase)
[solanum.git] / modules / m_chghost.c
index 647ee68b3661229f52d088fbce59aa5061cd16df..72e19622288ab1d124498c81db2c6da132951ca2 100644 (file)
 #include "whowas.h"
 #include "monitor.h"
 
-static int me_realhost(struct Client *, struct Client *, int, const char **);
-static int ms_chghost(struct Client *, struct Client *, int, const char **);
-static int me_chghost(struct Client *, struct Client *, int, const char **);
-static int mo_chghost(struct Client *, struct Client *, int, const char **);
+static int me_realhost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int ms_chghost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int me_chghost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int mo_chghost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 
 struct Message realhost_msgtab = {
-       "REALHOST", 0, 0, 0, MFLG_SLOW,
+       "REALHOST", 0, 0, 0, 0,
        {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_realhost, 2}, mg_ignore}
 };
 
 struct Message chghost_msgtab = {
-       "CHGHOST", 0, 0, 0, MFLG_SLOW,
+       "CHGHOST", 0, 0, 0, 0,
        {mg_ignore, mg_not_oper, {ms_chghost, 3}, {ms_chghost, 3}, {me_chghost, 3}, {mo_chghost, 3}}
 };
 
@@ -50,7 +50,7 @@ DECLARE_MODULE_AV1(chghost, NULL, NULL, chghost_clist, NULL, NULL, "$Revision: 3
 /* clean_host()
  *
  * input       - host to check
- * output      - 0 if erroneous, else 0
+ * output      - 0 if erroneous, else 1
  * side effects -
  */
 static int
@@ -58,7 +58,7 @@ clean_host(const char *host)
 {
        int len = 0;
        const char *last_slash = 0;
-       
+
        if (*host == '\0' || *host == ':')
                return 0;
 
@@ -91,7 +91,7 @@ clean_host(const char *host)
  * race condition.
  */
 static int
-me_realhost(struct Client *client_p, struct Client *source_p,
+me_realhost(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
        int parc, const char *parv[])
 {
        if (!IsPerson(source_p))
@@ -149,7 +149,7 @@ do_chghost(struct Client *source_p, struct Client *target_p,
  * parv[2] = host
  */
 static int
-ms_chghost(struct Client *client_p, struct Client *source_p,
+ms_chghost(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
        int parc, const char *parv[])
 {
        struct Client *target_p;
@@ -176,7 +176,7 @@ ms_chghost(struct Client *client_p, struct Client *source_p,
  * parv[2] = host
  */
 static int
-me_chghost(struct Client *client_p, struct Client *source_p,
+me_chghost(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
        int parc, const char *parv[])
 {
        struct Client *target_p;
@@ -198,7 +198,7 @@ me_chghost(struct Client *client_p, struct Client *source_p,
  * No, make it toggleable via ./configure. --nenolod
  */
 static int
-mo_chghost(struct Client *client_p, struct Client *source_p,
+mo_chghost(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
        int parc, const char *parv[])
 {
 #ifdef ENABLE_OPER_CHGHOST