1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 10:52:16 -05:00

Remove colors/formatting from topic

This commit is contained in:
Sebastian Kaspari 2010-03-20 22:02:04 +01:00
parent 251bee24f7
commit 5ff4c85226

View File

@ -557,6 +557,9 @@ public class IRCConnection extends PircBot
@Override @Override
public void onTopic(String target, String topic, String setBy, long date, boolean changed) 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); debug("Topic", target + " " + setBy + " " + topic);
if (changed) { if (changed) {