diff --git a/client/dcwebui.js b/client/dcwebui.js index 21cd94f..c727281 100644 --- a/client/dcwebui.js +++ b/client/dcwebui.js @@ -796,7 +796,11 @@ var updateTitle = function() { prefix = "[NEW PM] " } - document.title = prefix + hub_hubname + " ("+userlist.count()+")" + var suffix = ""; + if (userlist.count() > 0) { + suffix = " ("+userlist.count()+")"; + } + document.title = prefix + hub_hubname + suffix; }; var sock = {};