1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 10:52:16 -05:00

Handle "external" actions (/me) in queries

This commit is contained in:
Sebastian Kaspari 2010-03-10 21:40:49 +01:00
parent 09cb4af8f3
commit 2f97adaf30

View File

@ -89,8 +89,14 @@ public class IRCConnection extends PircBot
// Strip mIRC colors and formatting // Strip mIRC colors and formatting
action = Colors.removeFormattingAndColors(action); action = Colors.removeFormattingAndColors(action);
if (target.equals(this.getNick())) {
// We are the target - this is an action in a query
target = sender;
}
Message message = new Message(sender + " " + action); Message message = new Message(sender + " " + action);
message.setIcon(R.drawable.action); message.setIcon(R.drawable.action);
server.getConversation(target).addMessage(message); server.getConversation(target).addMessage(message);
Intent intent = new Intent(Broadcast.CHANNEL_MESSAGE); Intent intent = new Intent(Broadcast.CHANNEL_MESSAGE);