Always insert non-chathistory messages at the end
This commit is contained in:
1 parent
94901f1662
commit
df29650b98
1 file changed
+1
-1
@@ -143,7 +143,7 @@ function updateMembership(membership, letter, add, client) {
|
||||
function insertMessage(list, msg) {
|
||||
if (list.length == 0) {
|
||||
return [msg];
|
||||
} else if (list[list.length - 1].tags.time <= msg.tags.time) {
|
||||
} else if (!irc.findBatchByType(msg, "chathistory") || list[list.length - 1].tags.time <= msg.tags.time) {
|
||||
return list.concat(msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user