From a8316bc55a6d9d42da755018949a9519f61e5e45 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Sun, 11 Apr 2010 23:57:23 +0200 Subject: [PATCH] IRCConnection: Update notification onConnect --- src/org/yaaic/irc/IRCConnection.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/org/yaaic/irc/IRCConnection.java b/src/org/yaaic/irc/IRCConnection.java index 17d4558..f4a9e05 100644 --- a/src/org/yaaic/irc/IRCConnection.java +++ b/src/org/yaaic/irc/IRCConnection.java @@ -121,7 +121,12 @@ public class IRCConnection extends PircBot public void onConnect() { server.setStatus(Status.CONNECTED); - service.sendBroadcast(new Intent(Broadcast.SERVER_UPDATE)); + + service.sendBroadcast( + Broadcast.createServerIntent(Broadcast.SERVER_UPDATE, server.getId()) + ); + + service.updateNotification("Connected to " + server.getTitle()); Message message = new Message("Connected to " + server.getTitle()); message.setColor(Message.COLOR_GREEN);