From 5ff4c85226056ff507bb52f05674232ebc65d7c1 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Sat, 20 Mar 2010 22:02:04 +0100 Subject: [PATCH] Remove colors/formatting from topic --- src/org/yaaic/irc/IRCConnection.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/yaaic/irc/IRCConnection.java b/src/org/yaaic/irc/IRCConnection.java index 80cf028..c40754a 100644 --- a/src/org/yaaic/irc/IRCConnection.java +++ b/src/org/yaaic/irc/IRCConnection.java @@ -557,6 +557,9 @@ public class IRCConnection extends PircBot @Override public void onTopic(String target, String topic, String setBy, long date, boolean changed) { + // strip mIRC colors + topic = Colors.removeFormattingAndColors(topic); + debug("Topic", target + " " + setBy + " " + topic); if (changed) {