1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-01-10 05:08:18 -05:00

IRCConnection: Update notification onConnect

This commit is contained in:
Sebastian Kaspari 2010-04-11 23:57:23 +02:00
parent 0743024ad9
commit a8316bc55a

View File

@ -121,7 +121,12 @@ public class IRCConnection extends PircBot
public void onConnect() public void onConnect()
{ {
server.setStatus(Status.CONNECTED); 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 message = new Message("Connected to " + server.getTitle());
message.setColor(Message.COLOR_GREEN); message.setColor(Message.COLOR_GREEN);