1
0
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:
Sebastian Kaspari 2010-03-15 23:52:32 +01:00
parent b201a93adc
commit 876b96c358

View File

@ -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
*/