Remove 'messages' from config

This commit is contained in:
Mattias Erming 2014-06-16 15:13:43 +02:00
parent f4231dbf47
commit a50015867b
3 changed files with 2 additions and 3 deletions

View File

@ -79,7 +79,7 @@
</ul> </ul>
</div> </div>
<div class="chat"> <div class="chat">
{{#equal <%= messages %> messages.length}} {{#equal 100 messages.length}}
<button class="show-more" data-id="{{id}}"> <button class="show-more" data-id="{{id}}">
Show more Show more
</button> </button>

View File

@ -5,7 +5,6 @@ module.exports = {
nick: "shout-user", nick: "shout-user",
realname: "http://github.com/erming/shout", realname: "http://github.com/erming/shout",
}, },
messages: 100,
networks: [{ networks: [{
host: "irc.freenode.org", host: "irc.freenode.org",
port: 6667, port: 6667,

View File

@ -45,6 +45,6 @@ Chan.prototype.sortUsers = function() {
Chan.prototype.toJSON = function() { Chan.prototype.toJSON = function() {
var clone = _.clone(this); var clone = _.clone(this);
clone.count = clone.messages.length; clone.count = clone.messages.length;
clone.messages = clone.messages.slice(-1 * (config.messages || 0)); clone.messages = clone.messages.slice(-100);
return clone; return clone;
}; };