diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-10 17:37:51 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-10 17:37:51 +0200 |
commit | 81ecaf945d7cbb21547664c4de03747e71c8084b (patch) | |
tree | 9552a0234d7204c731c55373e0fa50d3f3b93059 /webclient | |
parent | Made users count auto updating. Do show it if the info is not available (ex:u... (diff) | |
download | synapse-81ecaf945d7cbb21547664c4de03747e71c8084b.tar.xz |
BF: Made /op work when providing no power value. 50 is used as default in this case
Diffstat (limited to 'webclient')
-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 9bb0d8e2d4..2af11edf32 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -460,7 +460,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) var powerLevel = 50; // default power level for op if (matches) { var user_id = matches[1]; - if (matches.length === 4) { + if (matches.length === 4 && undefined !== matches[3]) { powerLevel = parseInt(matches[3]); } if (powerLevel !== NaN) { |