1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-22 17:02:21 -05:00

Implemented IRC events: onSetNoExternalMessages() onRemoveNoExternalMessages()

This commit is contained in:
Sebastian Kaspari 2010-03-18 19:43:54 +01:00
parent 8d8e3691a4
commit 50af2687ae

View File

@ -744,6 +744,40 @@ public class IRCConnection extends PircBot
);
}
/**
* On set no external messages
*/
@Override
protected void onSetNoExternalMessages(String target, String sourceNick, String sourceLogin, String sourceHostname)
{
debug("onSetNoExternalMessages", sourceNick + " " + target);
Message message = new Message(sourceNick + " disables external messages");
message.setColor(Message.COLOR_BLUE);
server.getConversation(target).addMessage(message);
service.sendBroadcast(
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
);
}
/**
* On remove no external messages
*/
@Override
protected void onRemoveNoExternalMessages(String target, String sourceNick, String sourceLogin, String sourceHostname)
{
debug("onRemoveNoExternalMessages", sourceNick + " " + target);
Message message = new Message(sourceNick + " enables external messages");
message.setColor(Message.COLOR_BLUE);
server.getConversation(target).addMessage(message);
service.sendBroadcast(
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
);
}
/**
* On unknown
*/