1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-08-13 16:53:50 -04:00

Implemented IRCConnection.onTopic()

This commit is contained in:
Sebastian Kaspari 2010-03-02 19:59:37 +01:00
parent 9d1410b8e2
commit db3554de49

View File

@ -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));
} }
/** /**