Merge branch 'rainbownapkin-main-patch-02483' into 'main'

whoops

See merge request rainbownapkin/fore.st!3
This commit is contained in:
rainbow napkin 2022-01-10 00:54:50 +00:00
commit 1148f63959

View file

@ -439,7 +439,7 @@ ChatModule.prototype.sendMessage = function (msgobj) {
this.dirty = true; this.dirty = true;
this.buffer.push(msgobj);//msg buffer push, trims it down to 15 messages this.buffer.push(msgobj);//msg buffer push, trims it down to 15 messages
if (this.channel.uniqueName === "mods"){ if (this.channel.uniqueName === "mods"){
if(this.buffer.length > 500){//make mods channel an exception :) Eventually this will be a setting per channel you can set from the web ui if(this.buffer.length > 1000){//make mods channel an exception :) Eventually this will be a setting per channel you can set from the web ui
this.buffer.shift(); this.buffer.shift();
} }
}else if (this.buffer.length > 15) { }else if (this.buffer.length > 15) {