User tracking keeps proper track of user rank now.

This commit is contained in:
Aaron Weiss 2014-10-27 00:33:17 -04:00
parent 729ff3874c
commit c669d44f15
3 changed files with 67 additions and 31 deletions

View file

@ -1,4 +1,6 @@
#![feature(if_let)]
#![feature(phase)]
#![feature(slicing_syntax)]
extern crate regex;
#[phase(plugin)] extern crate regex_macros;
extern crate serialize;
@ -22,6 +24,7 @@ pub trait Bot {
fn identify(&self) -> IoResult<()>;
fn output(&mut self) -> IoResult<()>;
fn config(&self) -> &Config;
fn get_users(&self, chan: &str) -> Option<Vec<data::User>>;
}
fn process(msg: &str) -> IoResult<(&str, &str, Vec<&str>)> {