added kick

This commit is contained in:
wrk 2023-06-09 23:28:06 +02:00
parent e96079ffee
commit a7f785e66b
1 changed files with 7 additions and 0 deletions

View File

@ -49,4 +49,11 @@ impl IrcContext {
pub fn who(&mut self, channel: &str) {
self.queue(&format!("WHO {}", channel))
}
pub fn kick(&mut self, channel: &str, nick: &str, comment: Option<&str>) {
match comment {
Some(msg) => self.queue(&format!("KICK {} {} :{}", channel, nick, msg)),
None => self.queue(&format!("KICK {} {}", channel, nick)),
}
}
}