Support mentions without a : or , separating the nick and the space
This commit is contained in:
parent
824de7d529
commit
781c2806b7
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ fn main() {
|
|||
let server = IrcServer::new("config.json").unwrap();
|
||||
server.identify().unwrap();
|
||||
let my_nick = server.current_nickname();
|
||||
let mentions_regex = Regex::new(&format!("({}(:|,) )(.+)$", my_nick)).unwrap();
|
||||
let mentions_regex = Regex::new(&format!("({}(:|,)? )(.+)$", my_nick)).unwrap();
|
||||
for message in server.iter() {
|
||||
let message = message.unwrap();
|
||||
match message.command {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue