Skip to content

Commit

Permalink
Merge pull request #16 from mozamimy/do-not-post-at-mark
Browse files Browse the repository at this point in the history
Do not use `@` in post
  • Loading branch information
mozamimy committed May 22, 2017
2 parents bd57748 + 037790c commit 39800c6
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
@@ -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
@@ -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 39800c6

Please sign in to comment.