]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_tb.c
Do not install ban .conf files (like kline.conf, rsv.conf, etc) as they aren't used...
[irc/rqf/shadowircd.git] / modules / m_tb.c
index 539f58798ab714049ecbbcb10306ae37645960d7..6b979c5d3502822d9dfe56026c1391818e745e2e 100644 (file)
@@ -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.
                 */