Added method to invite users to a channel.
This commit is contained in:
parent
c9060dc89a
commit
b473a29dc0
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@ impl<'a> Bot<'a> {
|
|||
send(&self.conn, Message::new(None, "JOIN", [chan.as_slice()]))
|
||||
}
|
||||
|
||||
pub fn send_invite(&self, person: &str, chan: &str) -> IoResult<()> {
|
||||
send(&self.conn, Message::new(None, "INVITE", [person.as_slice(), chan.as_slice()]))
|
||||
}
|
||||
|
||||
pub fn send_privmsg(&self, chan: &str, msg: &str) -> IoResult<()> {
|
||||
send(&self.conn, Message::new(None, "PRIVMSG", [chan.as_slice(), msg.as_slice()]))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue