Implemented IRCConnection.onTopic()

This commit is contained in:
Sebastian Kaspari 2010-03-02 19:59:37 +01:00
parent 9d1410b8e2
commit db3554de49
1 changed files with 10 additions and 2 deletions

View File

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