Added SAMODE with associated unit test.

This commit is contained in:
Aaron Weiss 2014-10-29 01:36:34 -04:00
parent 56ca5379e1
commit 445cfb1405
2 changed files with 16 additions and 3 deletions

View file

@ -17,7 +17,8 @@ pub trait Bot {
fn send_nick(&self, nick: &str) -> IoResult<()>;
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_samode(&self, target: &str, mode: &str) -> IoResult<()>;
fn send_mode(&self, target: &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<()>;