Remove 'messages' from config
This commit is contained in:
parent
f4231dbf47
commit
a50015867b
@ -79,7 +79,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="chat">
|
||||
{{#equal <%= messages %> messages.length}}
|
||||
{{#equal 100 messages.length}}
|
||||
<button class="show-more" data-id="{{id}}">
|
||||
Show more
|
||||
</button>
|
||||
|
@ -5,7 +5,6 @@ module.exports = {
|
||||
nick: "shout-user",
|
||||
realname: "http://github.com/erming/shout",
|
||||
},
|
||||
messages: 100,
|
||||
networks: [{
|
||||
host: "irc.freenode.org",
|
||||
port: 6667,
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user