Skip to content

Commit

Permalink
darkirc: fix a bug caused lines starting with whitespace not be parse…
Browse files Browse the repository at this point in the history
…d/sent
  • Loading branch information
dasman committed Jan 22, 2025
1 parent 60a65fe commit 461f5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/darkirc/src/irc/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ impl Client {
))])
};

if !message.starts_with(':') || message.trim() == ":" {
if !message.starts_with(':') || (message.trim() == ":" && tokens.next().is_none()) {
return Ok(vec![ReplyType::Server((
ERR_NOTEXTTOSEND,
format!("{} :No text to send", nick),
Expand Down

0 comments on commit 461f5cd

Please sign in to comment.