From b757441c155122ae8ccd4c757eae7d51c2720a65 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Mon, 16 Mar 2015 21:00:47 +0000 Subject: [PATCH] twitter: remove @ from user name when tipping --- tipbot/modules/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tipbot/modules/twitter.py b/tipbot/modules/twitter.py index 7ed5b33..72e898c 100644 --- a/tipbot/modules/twitter.py +++ b/tipbot/modules/twitter.py @@ -174,7 +174,7 @@ class TwitterNetwork(Network): target=match.group(0) if self.on_command: try: - synthetic_cmd=['tip',target,line.replace('+','').replace(target,'').strip()] + synthetic_cmd=['tip',target.replace('@',''),line.replace('+','').replace(target,'').strip()] log_log('Running synthetic command: %s' % (str(synthetic_cmd))) self.on_command(link,synthetic_cmd) except Exception,e: