Remove 'messages' from config
This commit is contained in:
parent
f4231dbf47
commit
a50015867b
@ -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>
|
||||||
|
@ -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,
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user