Skip to content
This repository was archived by the owner on Jun 27, 2018. It is now read-only.

Commit 073700b

Browse files
authored
Fix message parsing
1 parent 2a3887c commit 073700b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/playbot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ fn main() {{
162162
if msg.starts_with(self.conn.current_nickname()) {
163163
let msg = &msg[self.conn.current_nickname().len()..];
164164

165-
if msg.len() <= 2 || !msg.starts_with(&[' ', ',', ':'] as &[char]) {
165+
if msg.len() < 2 || !msg.starts_with(&[',', ':'] as &[char]) {
166166
return;
167167
}
168168

0 commit comments

Comments
 (0)