diff --git a/README.md b/README.md index 95ed653..10650d7 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,9 @@ fn main() -> Result<(), std::io::Error> { if let Command::OTHER(line) = command { print!("{}", line); } + if let Command::PRIVMSG(channel, message) = command { + println!("PRIVMSG received: {} {}", channel, message); + } } } } diff --git a/src/lib.rs b/src/lib.rs index f6449f4..8f04029 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,9 @@ //! if let Command::OTHER(line) = command { //! print!("{}", line); //! } +//! if let Command::PRIVMSG(channel, message) = command { +//! println!("PRIVMSG received: {} {}", channel, message); +//! } //! } //! # break; //! }