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 = [];