mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 10:52:16 -05:00
Implemented IRC events: onSetNoExternalMessages() onRemoveNoExternalMessages()
This commit is contained in:
parent
8d8e3691a4
commit
50af2687ae
@ -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
|
* On unknown
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user