Parcourir la source

darkirc: disallow emtpy PRIVMSG content

dasman il y a 1 an
Parent
commit
2914aff907
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      bin/darkirc/src/irc/command.rs

+ 1 - 1
bin/darkirc/src/irc/command.rs

@@ -690,7 +690,7 @@ impl Client {
             ))])
         };
 
-        if !message.starts_with(':') {
+        if !message.starts_with(':') || message.trim() == ":" {
             return Ok(vec![ReplyType::Server((
                 ERR_NOTEXTTOSEND,
                 format!("{} :No text to send", nick),