Skip to content

Commit

Permalink
Do not use @ in post
Browse files Browse the repository at this point in the history
  • Loading branch information
mozamimy committed May 22, 2017
1 parent bd57748 commit 037790c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/router.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

use regex::Regex;
use std::error::Error;
use std::fs::File;
Expand Down
3 changes: 1 addition & 2 deletions src/telescreen_handler.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

use regex::{Captures, Regex};
use router::{Router, Rule};
use slack::{Event, EventHandler, Message, RtmClient};
Expand Down Expand Up @@ -70,7 +69,7 @@ impl TelescreenHandler {
self.get_user_name_from_id(cli, &caps[1])
.unwrap_or(&String::from("unknown")))
});
let message = format!("@{:} [ <#{}> ]:\n{:}",
let message = format!("{:} [ <#{}> ]:\n{:}",
unwrapped_user_name,
source_channel_id,
replaced_source_text);
Expand Down

0 comments on commit 037790c

Please sign in to comment.