mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 15:00:14 -05:00
Implemented IRCConnection.onTopic()
This commit is contained in:
parent
9d1410b8e2
commit
db3554de49
@ -249,9 +249,17 @@ public class IRCConnection extends PircBot
|
||||
* On Topic
|
||||
*/
|
||||
@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