summary refs log tree commit diff
path: root/webclient/room/room-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-10 17:37:51 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-10 17:37:51 +0200
commit81ecaf945d7cbb21547664c4de03747e71c8084b (patch)
tree9552a0234d7204c731c55373e0fa50d3f3b93059 /webclient/room/room-controller.js
parentMade users count auto updating. Do show it if the info is not available (ex:u... (diff)
downloadsynapse-81ecaf945d7cbb21547664c4de03747e71c8084b.tar.xz
BF: Made /op work when providing no power value. 50 is used as default in this case
Diffstat (limited to 'webclient/room/room-controller.js')
-rw-r--r--webclient/room/room-controller.js2
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) {