summaryrefslogtreecommitdiff
path: root/src/node/handler/PadMessageHandler.js
diff options
context:
space:
mode:
authorwebzwo0i <webzwo0i@c3d2.de>2015-03-03 15:20:33 +0100
committerwebzwo0i <webzwo0i@c3d2.de>2015-03-03 15:20:33 +0100
commit01cd82427a4e83e656f084923f8f06a1a61582c9 (patch)
tree9c3468271d0b54158eaa1e59f836ddbc84bcf911 /src/node/handler/PadMessageHandler.js
parent4e0353b3ef4e5b43278695c9a571c933c314e713 (diff)
downloadetherpad-lite-01cd82427a4e83e656f084923f8f06a1a61582c9.zip
check author in = operator
Diffstat (limited to 'src/node/handler/PadMessageHandler.js')
-rw-r--r--src/node/handler/PadMessageHandler.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js
index 7ea5039d..7521c05c 100644
--- a/src/node/handler/PadMessageHandler.js
+++ b/src/node/handler/PadMessageHandler.js
@@ -656,7 +656,12 @@ function handleUserChanges(data, cb)
, op
while(iterator.hasNext()) {
op = iterator.next()
- if(op.opcode != '+') continue;
+
+ //+ can add text with attribs
+ //= can change or add attribs
+ //- can have attribs, but they are discarded and don't show up in the apool
+ if(op.opcode == '-') continue;
+
op.attribs.split('*').forEach(function(attr) {
if(!attr) return
attr = wireApool.getAttrib(attr)