Added method to invite users to a channel.

This commit is contained in:
Aaron Weiss 2014-09-27 14:23:03 -04:00
parent c9060dc89a
commit b473a29dc0

View file

@ -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()]))
}