Added send_oper(...) to allow bots to oper up.

This commit is contained in:
Aaron Weiss 2014-10-29 00:17:49 -04:00
parent 7f67bd2905
commit 803e1e8ff4
2 changed files with 13 additions and 0 deletions

View file

@ -17,6 +17,7 @@ pub trait Bot {
fn send_user(&self, username: &str, real_name: &str) -> IoResult<()>;
fn send_join(&self, chan: &str) -> IoResult<()>;
fn send_mode(&self, chan: &str, mode: &str) -> IoResult<()>;
fn send_oper(&self, name: &str, password: &str) -> IoResult<()>;
fn send_topic(&self, chan: &str, topic: &str) -> IoResult<()>;
fn send_invite(&self, person: &str, chan: &str) -> IoResult<()>;
fn send_privmsg(&self, chan: &str, msg: &str) -> IoResult<()>;