mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-29 12:22:21 -05:00
Implemented IRC events: onSetChannelLimit() onRemoveChannelLimit()
This commit is contained in:
parent
b201a93adc
commit
876b96c358
@ -636,6 +636,40 @@ public class IRCConnection extends PircBot
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* On set channel limit
|
||||
*/
|
||||
@Override
|
||||
protected void onSetChannelLimit(String target, String sourceNick, String sourceLogin, String sourceHostname, int limit)
|
||||
{
|
||||
debug("onSetChannelLimit", sourceNick + " " + target);
|
||||
|
||||
Message message = new Message(sourceNick + " sets limit: " + limit);
|
||||
message.setColor(Message.COLOR_BLUE);
|
||||
server.getConversation(target).addMessage(message);
|
||||
|
||||
service.sendBroadcast(
|
||||
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* On remove channel limit
|
||||
*/
|
||||
@Override
|
||||
protected void onRemoveChannelLimit(String target, String sourceNick, String sourceLogin, String sourceHostname)
|
||||
{
|
||||
debug("onRemoveChannelLimit", sourceNick + " " + target);
|
||||
|
||||
Message message = new Message(sourceNick + " removes limit");
|
||||
message.setColor(Message.COLOR_BLUE);
|
||||
server.getConversation(target).addMessage(message);
|
||||
|
||||
service.sendBroadcast(
|
||||
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* On unknown
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user