Fix announcements for SSL sockets

This commit is contained in:
calzoneman 2013-09-24 13:46:41 -05:00
parent b3f4fc2b52
commit 87ee45165d
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Tue Sep 24 13:45 2013 CDT
* lib/acp.js: Emit announcements to SSL sockets in addition to regular
ones.
Tue Sep 24 13:15 2013 CDT
* www/assets/js/callbacks.js: Instantiate a new paginator for every
search result- prevents buttons being incorrectly added or omitted.

View file

@ -21,6 +21,8 @@ module.exports = function (Server) {
ActionLog.record(user.ip, user.name, "acp-announce", data);
Server.announcement = data;
Server.io.sockets.emit("announcement", data);
if (Server.cfg["enable-ssl"])
Server.sslio.sockets.emit("announcement", data);
});
user.socket.on("acp-announce-clear", function() {