]> jfr.im git - solanum.git/blobdiff - modules/m_tb.c
Mint CLICAP_FLAGS_PRIORITY
[solanum.git] / modules / m_tb.c
index 2b6e7098448183024cd35700f5d8ad38122cdaad..d925b457df58d3156ba215351820be5ff2555293 100644 (file)
@@ -32,8 +32,7 @@
 #include "send.h"
 #include "channel.h"
 #include "client.h"
-#include "common.h"
-#include "config.h"
+#include "defaults.h"
 #include "ircd.h"
 #include "match.h"
 #include "s_conf.h"
@@ -114,7 +113,7 @@ ms_tb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
                        return;
 
                set_channel_topic(chptr, newtopic, newtopicwho, newtopicts);
-               sendto_channel_local(ALL_MEMBERS, chptr, ":%s TOPIC %s :%s",
+               sendto_channel_local(fakesource_p, ALL_MEMBERS, chptr, ":%s TOPIC %s :%s",
                                     fakesource_p->name, chptr->chname, newtopic);
                sendto_server(client_p, chptr, CAP_TB|CAP_TS6, NOCAPS,
                              ":%s TB %s %ld %s%s:%s",
@@ -178,7 +177,7 @@ ms_etb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
                if(textchange)
                {
                        if (IsPerson(fakesource_p))
-                               sendto_channel_local(ALL_MEMBERS, chptr,
+                               sendto_channel_local(fakesource_p, ALL_MEMBERS, chptr,
                                                ":%s!%s@%s TOPIC %s :%s",
                                                fakesource_p->name,
                                                fakesource_p->username,
@@ -186,7 +185,7 @@ ms_etb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
                                                chptr->chname,
                                                newtopic);
                        else
-                               sendto_channel_local(ALL_MEMBERS, chptr,
+                               sendto_channel_local(fakesource_p, ALL_MEMBERS, chptr,
                                                ":%s TOPIC %s :%s",
                                                fakesource_p->name,
                                                chptr->chname, newtopic);