diff --git a/client/index.html b/client/index.html index 51ccfa9..6fc386f 100644 --- a/client/index.html +++ b/client/index.html @@ -79,7 +79,7 @@
- {{#equal <%= messages %> messages.length}} + {{#equal 100 messages.length}} diff --git a/config.js b/config.js index 46c4a4e..3bffbdf 100644 --- a/config.js +++ b/config.js @@ -5,7 +5,6 @@ module.exports = { nick: "shout-user", realname: "http://github.com/erming/shout", }, - messages: 100, networks: [{ host: "irc.freenode.org", port: 6667, diff --git a/lib/models/chan.js b/lib/models/chan.js index 7a6d320..4514539 100644 --- a/lib/models/chan.js +++ b/lib/models/chan.js @@ -45,6 +45,6 @@ Chan.prototype.sortUsers = function() { Chan.prototype.toJSON = function() { var clone = _.clone(this); clone.count = clone.messages.length; - clone.messages = clone.messages.slice(-1 * (config.messages || 0)); + clone.messages = clone.messages.slice(-100); return clone; };