diff options
Diffstat (limited to 'webclient/room/room-controller.js')
-rw-r--r-- | webclient/room/room-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index b9ba23dc48..5a2f06d8ee 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -351,7 +351,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) var matches = args.match(/^(\S+)$/); if (matches) { // Reset the user membership to "leave" to unban him - promise = matrixService.setMembership($scope.room_id, args, "leave"); + promise = matrixService.setMembership($scope.room_id, matches[1], "leave"); } else { $scope.feedback = "Usage: /unban <userId>"; |