diff --git a/src/twitter/buffers/stream.py b/src/twitter/buffers/stream.py index 42125056..c5bcd395 100644 --- a/src/twitter/buffers/stream.py +++ b/src/twitter/buffers/stream.py @@ -87,11 +87,11 @@ class streamer(TwythonStreamer): pub.sendMessage("mention", data=data, user=self.get_user()) def process_dm(self, data): - if self.session.db["user_name"] == data["direct_message"]["sender"]["screen_name"]: - d = self.put_data("sent_direct_messages", data["direct_message"]) - if d != False: - pub.sendMessage("sent-dm", data=data["direct_message"], user=self.get_user()) - else: + if self.session.db["user_name"] != data["direct_message"]["sender"]["screen_name"]: +# d = self.put_data("sent_direct_messages", data["direct_message"]) +# if d != False: +# pub.sendMessage("sent-dm", data=data["direct_message"], user=self.get_user()) +# else: d = self.put_data("direct_messages", data["direct_message"]) if d != False: pub.sendMessage("direct-message", data=data["direct_message"], user=self.get_user())