From 40169d486907e6ae651f7d3af1d511c594f293ae Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 12 May 2010 10:52:02 +0200 Subject: [PATCH] IRCConnection: Set STATUS_HIGHLIGHT on conversation if highlight occurs --- src/org/yaaic/irc/IRCConnection.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/org/yaaic/irc/IRCConnection.java b/src/org/yaaic/irc/IRCConnection.java index b0f8a1c..7b16e82 100644 --- a/src/org/yaaic/irc/IRCConnection.java +++ b/src/org/yaaic/irc/IRCConnection.java @@ -189,6 +189,8 @@ public class IRCConnection extends PircBot // highlight message.setColor(Message.COLOR_RED); service.updateNotification(target + ": " + sender + " " + action); + + server.getConversation(target).setStatus(Conversation.STATUS_HIGHLIGHT); } if (target.equals(this.getNick())) { @@ -382,6 +384,8 @@ public class IRCConnection extends PircBot // highlight message.setColor(Message.COLOR_RED); service.updateNotification(target + ": <" + sender + "> " + text); + + server.getConversation(target).setStatus(Conversation.STATUS_HIGHLIGHT); } server.getConversation(target).addMessage(message); @@ -526,6 +530,8 @@ public class IRCConnection extends PircBot if (text.contains(getNick())) { message.setColor(Message.COLOR_RED); service.updateNotification("<" + sender + "> " + text); + + server.getConversation(sender).setStatus(Conversation.STATUS_HIGHLIGHT); } Conversation conversation = server.getConversation(sender);