mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-15 13:35:09 -05:00
Implemented IRC events: onSetPrivate() onRemovePrivate()
This commit is contained in:
parent
f40480d773
commit
91536b1609
@ -846,6 +846,40 @@ public class IRCConnection extends PircBot
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On set private
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected void onSetPrivate(String target, String sourceNick, String sourceLogin, String sourceHostname)
|
||||||
|
{
|
||||||
|
debug("onSetPrivate", sourceNick + " " + target);
|
||||||
|
|
||||||
|
Message message = new Message(sourceNick + " sets private");
|
||||||
|
message.setColor(Message.COLOR_BLUE);
|
||||||
|
server.getConversation(target).addMessage(message);
|
||||||
|
|
||||||
|
service.sendBroadcast(
|
||||||
|
Broadcast.createConversationIntent(Broadcast.CONVERSATION_MESSAGE, server.getId(), target)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On remove private
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected void onRemovePrivate(String target, String sourceNick, String sourceLogin, String sourceHostname)
|
||||||
|
{
|
||||||
|
debug("onRemovePrivate", sourceNick + " " + target);
|
||||||
|
|
||||||
|
Message message = new Message(sourceNick + " removes private");
|
||||||
|
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