mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-08-13 16:53:50 -04:00
Implemented IRCConnection.onTopic()
This commit is contained in:
parent
9d1410b8e2
commit
db3554de49
@ -249,9 +249,17 @@ public class IRCConnection extends PircBot
|
|||||||
* On Topic
|
* On Topic
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void onTopic(String channel, String topic, String setBy, long date, boolean changed)
|
protected void onTopic(String target, String topic, String setBy, long date, boolean changed)
|
||||||
{
|
{
|
||||||
debug("Topic", channel + " " + setBy + " " + topic);
|
debug("Topic", target + " " + setBy + " " + topic);
|
||||||
|
|
||||||
|
if (changed) {
|
||||||
|
server.getChannel(target).addMessage(setBy + " sets topic: " + topic);
|
||||||
|
} else {
|
||||||
|
server.getChannel(target).addMessage("Topic: " + topic);
|
||||||
|
}
|
||||||
|
|
||||||
|
service.sendBroadcast(new Intent(Broadcast.CHANNEL_MESSAGE));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user