# HG changeset patch # User Teemu Piippo # Date 1421347737 -7200 # Node ID 0f96e3157b7f8b714d07bd1a92e6d87aad010ddc # Parent dbf49689af0d9531d70f09286dbc895b644c96ff - meh diff -r dbf49689af0d -r 0f96e3157b7f irc.py --- a/irc.py Thu Jan 15 19:06:14 2015 +0200 +++ b/irc.py Thu Jan 15 20:48:57 2015 +0200 @@ -10,6 +10,10 @@ CLIF_CONNECTED = (1 << 1) +CtcpChar = '\001' +BoldChar = '\002' +ColorChar = '\003' + all_clients = [] class RestartError (Exception): diff -r dbf49689af0d -r 0f96e3157b7f mod_bridge.py --- a/mod_bridge.py Thu Jan 15 19:06:14 2015 +0200 +++ b/mod_bridge.py Thu Jan 15 20:48:57 2015 +0200 @@ -90,6 +90,11 @@ for dest in Config.get_node('bridges').get_value (sourceName, []): try: + # Stuff some control characters into the name so that this doesn't cause people who + # are on both ends of the bridge to highlight themselves + # sender = sender[0:len(sender)/2] + (Irc.BoldChar * 2) + sender += '_' + clientName, channelName = dest.split ('/') Irc.get_client (clientName).privmsg (channelName, '[%s/%s] <%s> %s' % (bot.name, channel, sender, message))