mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 23:10:11 -05:00
IRCConnection: Set STATUS_HIGHLIGHT on conversation if highlight occurs
This commit is contained in:
parent
8cb8341218
commit
40169d4869
@ -189,6 +189,8 @@ public class IRCConnection extends PircBot
|
|||||||
// highlight
|
// highlight
|
||||||
message.setColor(Message.COLOR_RED);
|
message.setColor(Message.COLOR_RED);
|
||||||
service.updateNotification(target + ": " + sender + " " + action);
|
service.updateNotification(target + ": " + sender + " " + action);
|
||||||
|
|
||||||
|
server.getConversation(target).setStatus(Conversation.STATUS_HIGHLIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target.equals(this.getNick())) {
|
if (target.equals(this.getNick())) {
|
||||||
@ -382,6 +384,8 @@ public class IRCConnection extends PircBot
|
|||||||
// highlight
|
// highlight
|
||||||
message.setColor(Message.COLOR_RED);
|
message.setColor(Message.COLOR_RED);
|
||||||
service.updateNotification(target + ": <" + sender + "> " + text);
|
service.updateNotification(target + ": <" + sender + "> " + text);
|
||||||
|
|
||||||
|
server.getConversation(target).setStatus(Conversation.STATUS_HIGHLIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
server.getConversation(target).addMessage(message);
|
server.getConversation(target).addMessage(message);
|
||||||
@ -526,6 +530,8 @@ public class IRCConnection extends PircBot
|
|||||||
if (text.contains(getNick())) {
|
if (text.contains(getNick())) {
|
||||||
message.setColor(Message.COLOR_RED);
|
message.setColor(Message.COLOR_RED);
|
||||||
service.updateNotification("<" + sender + "> " + text);
|
service.updateNotification("<" + sender + "> " + text);
|
||||||
|
|
||||||
|
server.getConversation(sender).setStatus(Conversation.STATUS_HIGHLIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
Conversation conversation = server.getConversation(sender);
|
Conversation conversation = server.getConversation(sender);
|
||||||
|
Loading…
Reference in New Issue
Block a user