Added method to set channel modes.
This commit is contained in:
parent
0ad2411c14
commit
e0c2c1174b
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ impl<'a> Bot<'a> {
|
|||
pub fn send_join(&self, chan: &str) -> IoResult<()> {
|
||||
send(&self.conn, Message::new(None, "JOIN", [chan.as_slice()]))
|
||||
}
|
||||
|
||||
pub fn send_mode(&self, chan: &str, mode: &str) -> IoResult<()> {
|
||||
send(&self.conn, Message::new(None, "MODE", [chan.as_slice(), mode.as_slice()]))
|
||||
}
|
||||
|
||||
pub fn send_topic(&self, chan: &str, topic: &str) -> IoResult<()> {
|
||||
send(&self.conn, Message::new(None, "TOPIC", [chan.as_slice(), topic.as_slice()]))
|
||||
|
|
Loading…
Reference in a new issue