IRCConnection: Set STATUS_HIGHLIGHT on conversation if highlight occurs

This commit is contained in:
Sebastian Kaspari 2010-05-12 10:52:02 +02:00
parent 8cb8341218
commit 40169d4869
1 changed files with 6 additions and 0 deletions

View File

@ -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);