- meh

Thu, 15 Jan 2015 20:48:57 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Thu, 15 Jan 2015 20:48:57 +0200
changeset 119
0f96e3157b7f
parent 118
dbf49689af0d
child 120
9880bb697149

- meh

irc.py file | annotate | diff | comparison | revisions
mod_bridge.py file | annotate | diff | comparison | revisions
--- 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):
--- 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))

mercurial