]> jfr.im git - solanum.git/blobdiff - modules/core/m_part.c
ircd: send tags on every message
[solanum.git] / modules / core / m_part.c
index 15357c00c9148091c7e81389fa9c3bb9969322ef..6a778b28ae685bd93c69c18ed50bd096286b89b1 100644 (file)
@@ -25,7 +25,6 @@
 #include "stdinc.h"
 #include "channel.h"
 #include "client.h"
-#include "common.h"
 #include "hash.h"
 #include "match.h"
 #include "ircd.h"
@@ -134,7 +133,7 @@ part_one_client(struct Client *client_p, struct Client *source_p, char *name, co
 
                sendto_server(client_p, chptr, CAP_TS6, NOCAPS,
                              ":%s PART %s :%s", use_id(source_p), chptr->chname, reason);
-               sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@%s PART %s :%s",
+               sendto_channel_local(source_p, ALL_MEMBERS, chptr, ":%s!%s@%s PART %s :%s",
                                     source_p->name, source_p->username,
                                     source_p->host, chptr->chname, reason);
        }
@@ -142,7 +141,7 @@ part_one_client(struct Client *client_p, struct Client *source_p, char *name, co
        {
                sendto_server(client_p, chptr, CAP_TS6, NOCAPS,
                              ":%s PART %s", use_id(source_p), chptr->chname);
-               sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@%s PART %s",
+               sendto_channel_local(source_p, ALL_MEMBERS, chptr, ":%s!%s@%s PART %s",
                                     source_p->name, source_p->username,
                                     source_p->host, chptr->chname);
        }