Skip to content

Commit

Permalink
xmpp: ignore anonymous group chat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
thepaul committed Sep 15, 2011
1 parent 83aa9a2 commit 04450dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xmppbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ def userLeftRoom(self, room, user):

def receivedGroupChat(self, room, user, body):
channel = self.room2chan(room)
if user is None:
# anonymous message
return
if user.nick == self.nickname:
# seeing my own message
return
Expand Down

0 comments on commit 04450dd

Please sign in to comment.