#include "send.h"
#include "channel.h"
#include "client.h"
-#include "common.h"
#include "defaults.h"
#include "ircd.h"
#include "match.h"
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",
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,
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);