X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/80df74cfc567f06ce615079f3d9d84d11f56fea1..8a889b0a5ffbac79bea29658c7c0f4a89f9b7be8:/modules/m_tb.c diff --git a/modules/m_tb.c b/modules/m_tb.c index 539f587..6b979c5 100644 --- a/modules/m_tb.c +++ b/modules/m_tb.c @@ -27,7 +27,6 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Id: m_tb.c 1349 2006-05-17 17:37:46Z jilles $ */ #include "stdinc.h" @@ -177,9 +176,21 @@ ms_etb(struct Client *client_p, struct Client *source_p, int parc, const char *p * but do propagate the new topicts/topicwho to servers. */ if(textchange) - sendto_channel_local(ALL_MEMBERS, chptr, ":%s TOPIC %s :%s", - fakesource_p->name, chptr->chname, - newtopic); + { + if (IsPerson(fakesource_p)) + sendto_channel_local(ALL_MEMBERS, chptr, + ":%s!%s@%s TOPIC %s :%s", + fakesource_p->name, + fakesource_p->username, + fakesource_p->host, + chptr->chname, + newtopic); + else + sendto_channel_local(ALL_MEMBERS, chptr, + ":%s TOPIC %s :%s", + fakesource_p->name, + chptr->chname, newtopic); + } /* Propagate channelts as given, because an older channelts * forces any change. */