Update notification onMessage, onAction, onPrivateMessage

This commit is contained in:
Sebastian Kaspari 2010-04-11 23:53:23 +02:00
parent 289cf2f10c
commit aa383411c5
1 changed files with 4 additions and 1 deletions

View File

@ -151,6 +151,7 @@ public class IRCConnection extends PircBot
if (action.contains(getNick())) {
// highlight
message.setColor(Message.COLOR_RED);
service.updateNotification(target + ": " + sender + " " + action);
}
if (target.equals(this.getNick())) {
@ -337,12 +338,13 @@ public class IRCConnection extends PircBot
{
// Strip mIRC colors and formatting
text = Colors.removeFormattingAndColors(text);
Message message = new Message("<" + sender + "> " + text);
if (text.contains(getNick())) {
// highlight
message.setColor(Message.COLOR_RED);
service.updateNotification(target + ": <" + sender + "> " + text);
}
server.getConversation(target).addMessage(message);
@ -486,6 +488,7 @@ public class IRCConnection extends PircBot
if (text.contains(getNick())) {
message.setColor(Message.COLOR_RED);
service.updateNotification("<" + sender + "> " + text);
}
Conversation conversation = server.getConversation(sender);