1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-12-01 13:22:20 -05:00

IRCConnection: Formatting

This commit is contained in:
Sebastian Kaspari 2011-03-15 20:12:12 +01:00
parent 488924546f
commit 49f067cd67

View File

@ -350,8 +350,11 @@ public class IRCConnection extends PircBot
); );
service.sendBroadcast(intent); service.sendBroadcast(intent);
} else if (service.getSettings().showJoinAndPart()) { } else if (service.getSettings().showJoinAndPart()) {
Message message = new Message(service.getString(R.string.message_join, sender), Message message = new Message(
Message.TYPE_MISC); service.getString(R.string.message_join, sender),
Message.TYPE_MISC
);
message.setIcon(R.drawable.join); message.setIcon(R.drawable.join);
message.setColor(Message.COLOR_GREEN); message.setColor(Message.COLOR_GREEN);
server.getConversation(target).addMessage(message); server.getConversation(target).addMessage(message);
@ -538,8 +541,11 @@ public class IRCConnection extends PircBot
); );
service.sendBroadcast(intent); service.sendBroadcast(intent);
} else if (service.getSettings().showJoinAndPart()) { } else if (service.getSettings().showJoinAndPart()) {
Message message = new Message(service.getString(R.string.message_part, sender), Message message = new Message(
Message.TYPE_MISC); service.getString(R.string.message_part, sender),
Message.TYPE_MISC
);
message.setColor(Message.COLOR_GREEN); message.setColor(Message.COLOR_GREEN);
message.setIcon(R.drawable.part); message.setIcon(R.drawable.part);
server.getConversation(target).addMessage(message); server.getConversation(target).addMessage(message);
@ -611,8 +617,11 @@ public class IRCConnection extends PircBot
Vector<String> channels = getChannelsByNickname(sourceNick); Vector<String> channels = getChannelsByNickname(sourceNick);
for (String target : channels) { for (String target : channels) {
Message message = new Message(service.getString(R.string.message_quit, sourceNick, reason), Message message = new Message(
Message.TYPE_MISC); service.getString(R.string.message_quit, sourceNick, reason),
Message.TYPE_MISC
);
message.setColor(Message.COLOR_GREEN); message.setColor(Message.COLOR_GREEN);
message.setIcon(R.drawable.quit); message.setIcon(R.drawable.quit);
server.getConversation(target).addMessage(message); server.getConversation(target).addMessage(message);
@ -629,8 +638,11 @@ public class IRCConnection extends PircBot
Conversation conversation = server.getConversation(sourceNick); Conversation conversation = server.getConversation(sourceNick);
if (conversation != null) { if (conversation != null) {
Message message = new Message(service.getString(R.string.message_quit, sourceNick, reason), Message message = new Message(
Message.TYPE_MISC); service.getString(R.string.message_quit, sourceNick, reason),
Message.TYPE_MISC
);
message.setColor(Message.COLOR_GREEN); message.setColor(Message.COLOR_GREEN);
message.setIcon(R.drawable.quit); message.setIcon(R.drawable.quit);
conversation.addMessage(message); conversation.addMessage(message);