]> jfr.im git - solanum.git/blobdiff - extensions/m_sendbans.c
Merge pull request #53 from ShadowNinja/clarify_U+R
[solanum.git] / extensions / m_sendbans.c
index 00ff7da8c619242e56cc23266298e3b9929a77f2..67df6df267ab9dc81e1548a35868f20dbb7fddb0 100644 (file)
@@ -42,6 +42,7 @@
 #include "msg.h"
 #include "hash.h"
 #include "modules.h"
+#include "messages.h"
 
 static int mo_sendbans(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 
@@ -138,7 +139,7 @@ static int mo_sendbans(struct Client *client_p, struct Client *source_p, int par
                sendto_match_servs(source_p, target,
                                CAP_ENCAP, NOCAPS,
                                "ENCAP %s RESV 0 %s 0 :%s",
-                               target, aconf->name, aconf->passwd);
+                               target, aconf->host, aconf->passwd);
        }
 
        HASH_WALK(i, R_MAX, ptr, resvTable)
@@ -149,7 +150,7 @@ static int mo_sendbans(struct Client *client_p, struct Client *source_p, int par
                sendto_match_servs(source_p, target,
                                CAP_ENCAP, NOCAPS,
                                "ENCAP %s RESV 0 %s 0 :%s",
-                               target, aconf->name, aconf->passwd);
+                               target, aconf->host, aconf->passwd);
        }
        HASH_WALK_END
 
@@ -158,11 +159,11 @@ static int mo_sendbans(struct Client *client_p, struct Client *source_p, int par
                aconf = ptr->data;
                if (aconf->hold)
                        continue;
-               mask2 = expand_xline(aconf->name);
+               mask2 = expand_xline(aconf->host);
                if (mask2 == NULL)
                {
                        sendto_one_notice(source_p, ":Skipping xline [%s]",
-                                       aconf->name);
+                                       aconf->host);
                        continue;
                }
                sendto_match_servs(source_p, target,