1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-15 05:25:05 -05:00

Implemented IRC events: onSetModerated() onRemoveModerated()

This commit is contained in:
Sebastian Kaspari 2010-03-18 19:48:11 +01:00
parent 75fb9c419c
commit f40480d773

View File

@ -812,6 +812,40 @@ public class IRCConnection extends PircBot
);
}
/**
* On set moderated
*/
@Override
protected void onSetModerated(String target, String sourceNick, String sourceLogin, String sourceHostname)
{
debug("onSetModerated", sourceNick + " " + target);
Message message = new Message(sourceNick + " sets moderated");
message.setColor(Message.COLOR_BLUE);
server.getConversation(target).addMessage(message);
service.sendBroadcast(
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
);
}
/**
* On remove moderated
*/
@Override
protected void onRemoveModerated(String target, String sourceNick, String sourceLogin, String sourceHostname)
{
debug("onRemoveModerated", sourceNick + " " + target);
Message message = new Message(sourceNick + " removes moderated");
message.setColor(Message.COLOR_BLUE);
server.getConversation(target).addMessage(message);
service.sendBroadcast(
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
);
}
/**
* On unknown
*/