mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-09 12:48:00 -05:00
Implemented IRC events: onSetTopicProtection() onRemoveTopicProtection()
This commit is contained in:
parent
438a7e5d3e
commit
8d8e3691a4
@ -709,6 +709,40 @@ public class IRCConnection extends PircBot
|
|||||||
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
|
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On set topic protection
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected void onSetTopicProtection(String target, String sourceNick, String sourceLogin, String sourceHostname)
|
||||||
|
{
|
||||||
|
debug("onSetTopicProtection", sourceNick + " " + target);
|
||||||
|
|
||||||
|
Message message = new Message(sourceNick + " sets topic protection");
|
||||||
|
message.setColor(Message.COLOR_BLUE);
|
||||||
|
server.getConversation(target).addMessage(message);
|
||||||
|
|
||||||
|
service.sendBroadcast(
|
||||||
|
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On remove topic protection
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected void onRemoveTopicProtection(String target, String sourceNick, String sourceLogin, String sourceHostname)
|
||||||
|
{
|
||||||
|
debug("onRemoveTopicProtection", sourceNick + " " + target);
|
||||||
|
|
||||||
|
Message message = new Message(sourceNick + " removes topic protection");
|
||||||
|
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