diff --git a/index.html b/index.html
index 80b30d4..906204e 100644
--- a/index.html
+++ b/index.html
@@ -266,9 +266,9 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel
-
+
- {{ content.indent(predicate) }}{{ content.shortName }}{{ content.fullName }}
+ {{ content.indentedName(predicate) }}{{ content.fullName }}
diff --git a/js/models.js b/js/models.js
index 70d3618..bfada31 100644
--- a/js/models.js
+++ b/js/models.js
@@ -28,12 +28,12 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
var lastSeen = -1;
var serverSortKey = fullName.replace(/^irc.server.(\w+)/, "irc.$1");
- var indent = function(predicate) {
+ var indentedName = function(predicate) {
if( predicate == "serverSortKey" && fullName.match(/^irc./) && !fullName.match(/^irc.server./) ) {
// indent channel
- return " "; // four protected spaces
+ return " " + shortName; // four protected spaces
} else {
- return "";
+ return shortName;
}
};
@@ -173,7 +173,7 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
updateNick: updateNick,
flatNicklist: flatNicklist,
serverSortKey: serverSortKey,
- indent: indent,
+ indentedName: indentedName,
history: history,
addToHistory: addToHistory,
getHistoryUp: getHistoryUp,