Skip to content

Commit

Permalink
Fix an error when trying to invite users into a room
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaelor committed Nov 26, 2017
1 parent 81bae25 commit 2c44afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mattermost.plug
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Module = mattermost
[Documentation]
Description = A Mattermost backend for errbot.
Author = Christian Plümer
Version = 2.0.0
Version = 2.0.1
Website = https://github.com/Vaelor/errbot-mattermost-backend
2 changes: 1 addition & 1 deletion src/mattermostRoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def invite(self, *args):
))
users = {}
for user in users_not_in_channel:
users.update({users_not_in_channel[user]['username']: users_not_in_channel[user]['id']})
users.update({user['username']: user['id']})
for user in args:
if user not in users:
raise UserDoesNotExistError('User \'{}\' not found'.format(user))
Expand Down

0 comments on commit 2c44afd

Please sign in to comment.