From: Darren Date: Sat, 25 Aug 2012 20:38:05 +0000 (+0100) Subject: ontopicssetbby event X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4a9e8527a8fb37c3191517160746546d5a88a6e0;p=KiwiIRC.git ontopicssetbby event --- diff --git a/client_backbone/model_application.js b/client_backbone/model_application.js index ea6130d..9732d15 100644 --- a/client_backbone/model_application.js +++ b/client_backbone/model_application.js @@ -143,6 +143,16 @@ kiwi.model.Application = Backbone.Model.extend(new (function () { }); + gw.on('ontopicsetby', function (event) { + var c, when; + c = that.panels.getByName(event.channel); + if (!c) return; + + when = new Date(event.when * 1000).toLocaleString(); + c.addMsg('', 'Topic set by ' + event.nick + ' at ' + when, 'topic'); + }); + + gw.on('onuserlist', function (event) { var channel; channel = that.panels.getByName(event.channel);