Browse Source

bin/ircd: fix a bug adding new msg with empty buffer

ghassmo 4 years ago
parent
commit
30433216f2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      bin/ircd/src/privmsg.rs

+ 2 - 0
bin/ircd/src/privmsg.rs

@@ -31,6 +31,8 @@ impl PrivmsgsBuffer {
             if privmsg.timestamp > last_msg.timestamp {
             if privmsg.timestamp > last_msg.timestamp {
                 self.0.push(privmsg.clone());
                 self.0.push(privmsg.clone());
             }
             }
+        } else {
+            self.0.push(privmsg.clone());
         }
         }
     }
     }