From dc79d71ae590a77c803a0e41200eaa59d6d04a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olli=20M=C3=A4ntyl=C3=A4?= Date: Sun, 26 Apr 2015 22:42:31 +0300 Subject: [PATCH] Revert "Fix topic exploit" This reverts commit ef041d6612e20369bf49b17b8162c57b4955a1cc. To show topic again. Commit was just disabling the topic. --- client/js/shout.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/js/shout.js b/client/js/shout.js index 9c2dace5..5b02e23d 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -314,6 +314,10 @@ $(function() { } }); + socket.on("topic", function(data) { + $("#chan-" + data.chan).find(".header .topic").html(data.topic); + }); + socket.on("users", function(data) { var users = chat.find("#chan-" + data.chan).find(".users").html(render("user", data)); var nicks = [];