Skip to content

Commit

Permalink
Remove the resource from the sender in findUser, as it tries to match…
Browse files Browse the repository at this point in the history
… sender with JabberId.
  • Loading branch information
alienth committed Feb 10, 2012
1 parent 3af29af commit c27e6e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ZenPacks/chudler/xmppBot/Jabber/plugins/ack.py
Expand Up @@ -81,6 +81,12 @@ def acknowledge(self, client, adapter, dryrun, verbose, events, sender, log):
client.sendMessage(message, sender, messageType)

def findUser(self, sender, adapter):

# remove the resource from the sender
if '/' in sender:
sender = sender.split('/')[0]


for user in adapter.userSettings():
try:
jabberProperty = user.getProperty('JabberId').lower()
Expand Down

0 comments on commit c27e6e1

Please sign in to comment.