Skip to content

Commit

Permalink
ばぐひっくす_(:3」∠)_
Browse files Browse the repository at this point in the history
  • Loading branch information
non117 committed Jan 13, 2013
1 parent be4b551 commit e30707e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.project
.pydevproject
.settings/*
.DS_Store
.*
*.pyc
settings.py
boxnya.pid
*.pyc
log/
*~

2 changes: 1 addition & 1 deletion src/lib/filters/egosearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def filter(self, packet):
if self.favtero and "fav" in mention["post"] and mention["user"] in self.screen_name:
self.send({"text":mention["post"], "mention":data["mentions"], "type":"favtero"}, target=["favbot"])

elif data.get("event") and data["target"]["screen_name"] in self.screen_name:
elif data.get("event") and data.get("target") and data["target"]["screen_name"] in self.screen_name:
if self.fav and "favorite" in data["event"]:
event = {"star":u"☆" if "un" in data["event"] else u"★",
"user":data["source"]["screen_name"],
Expand Down

0 comments on commit e30707e

Please sign in to comment.