mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-12-24 08:28:49 -05:00
Add connect error message to server info window
This commit is contained in:
parent
0a0190c219
commit
fa3584e596
@ -96,11 +96,12 @@ public class IRCBinder extends Binder
|
|||||||
} else if (e instanceof IrcException) {
|
} else if (e instanceof IrcException) {
|
||||||
message = new Message("Could not log into the IRC server " + server.getHost());
|
message = new Message("Could not log into the IRC server " + server.getHost());
|
||||||
} else {
|
} else {
|
||||||
message = new Message("Could not connect to IRC server " + server.getHost());
|
message = new Message("Could not connect to IRC server (" + e.getMessage() + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
message.setColor(Message.COLOR_RED);
|
message.setColor(Message.COLOR_RED);
|
||||||
message.setIcon(R.drawable.error);
|
message.setIcon(R.drawable.error);
|
||||||
|
server.getConversation(ServerInfo.DEFAULT_NAME).addMessage(message);
|
||||||
|
|
||||||
Intent cIntent = new Intent(Broadcast.CONVERSATION_MESSAGE);
|
Intent cIntent = new Intent(Broadcast.CONVERSATION_MESSAGE);
|
||||||
cIntent.putExtra(Broadcast.EXTRA_SERVER, server.getId());
|
cIntent.putExtra(Broadcast.EXTRA_SERVER, server.getId());
|
||||||
|
Loading…
Reference in New Issue
Block a user