mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-10 05:08:18 -05:00
Update notification onMessage, onAction, onPrivateMessage
This commit is contained in:
parent
289cf2f10c
commit
aa383411c5
@ -151,6 +151,7 @@ public class IRCConnection extends PircBot
|
|||||||
if (action.contains(getNick())) {
|
if (action.contains(getNick())) {
|
||||||
// highlight
|
// highlight
|
||||||
message.setColor(Message.COLOR_RED);
|
message.setColor(Message.COLOR_RED);
|
||||||
|
service.updateNotification(target + ": " + sender + " " + action);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target.equals(this.getNick())) {
|
if (target.equals(this.getNick())) {
|
||||||
@ -343,6 +344,7 @@ public class IRCConnection extends PircBot
|
|||||||
if (text.contains(getNick())) {
|
if (text.contains(getNick())) {
|
||||||
// highlight
|
// highlight
|
||||||
message.setColor(Message.COLOR_RED);
|
message.setColor(Message.COLOR_RED);
|
||||||
|
service.updateNotification(target + ": <" + sender + "> " + text);
|
||||||
}
|
}
|
||||||
|
|
||||||
server.getConversation(target).addMessage(message);
|
server.getConversation(target).addMessage(message);
|
||||||
@ -486,6 +488,7 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
Conversation conversation = server.getConversation(sender);
|
Conversation conversation = server.getConversation(sender);
|
||||||
|
Loading…
Reference in New Issue
Block a user