From 5e3bcfc82e186dd910adfa1c4fdbc8ab021cabd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sun, 7 Dec 2014 13:24:56 -0600 Subject: [PATCH] Mentions are detected even if username's capitalization is incorrect --- src/twitter/buffers/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twitter/buffers/stream.py b/src/twitter/buffers/stream.py index 4a4435de..e6f3dd67 100644 --- a/src/twitter/buffers/stream.py +++ b/src/twitter/buffers/stream.py @@ -51,7 +51,7 @@ class streamer(TwythonStreamer): wx.PostEvent(self.parent.search_buffer("buffer", "favs"), tweet_event) def check_mentions(self, data): - if "@%s" % (self.db.settings["user_name"]) in data["text"]: + if "@%s" % (self.db.settings["user_name"].lower()) in data["text"].lower(): tweet_event = event.event(event.EVT_OBJECT, 1) tweet_event.SetItem(data) text = _(u"One mention from %s ") % (data["user"]["name"])