ontopicssetbby event
authorDarren <darren@darrenwhitlen.com>
Sat, 25 Aug 2012 20:38:05 +0000 (21:38 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 25 Aug 2012 20:38:05 +0000 (21:38 +0100)
client_backbone/model_application.js

index ea6130d8ff5502874b937bc514a0551b11036d6e..9732d158a812914a9e506ffdd8f4b01beae0a9c3 100644 (file)
@@ -143,6 +143,16 @@ kiwi.model.Application = Backbone.Model.extend(new (function () {
         });\r
 \r
 \r
+        gw.on('ontopicsetby', function (event) {\r
+            var c, when;\r
+            c = that.panels.getByName(event.channel);\r
+            if (!c) return;\r
+\r
+            when = new Date(event.when * 1000).toLocaleString();\r
+            c.addMsg('', 'Topic set by ' + event.nick + ' at ' + when, 'topic');\r
+        });\r
+\r
+\r
         gw.on('onuserlist', function (event) {\r
             var channel;\r
             channel = that.panels.getByName(event.channel);\r