Commit bc3f069a by Chavee Issariyapat

add overwrite/overset

parent 5f8a25ea
...@@ -7,11 +7,11 @@ function rewriteTopic(topic, op, groupid, clientid, output) { ...@@ -7,11 +7,11 @@ function rewriteTopic(topic, op, groupid, clientid, output) {
return modify.insertWordIntoTopic(topic, '!'+groupid, 1); return modify.insertWordIntoTopic(topic, '!'+groupid, 1);
case '@shadow' : case '@shadow' :
if (chunk[1] == 'set' || chunk[1] == 'get') { if (chunk[1] == 'set' || chunk[1] == 'overset' || chunk[1] == 'get') {
output.verb = chunk[1]; output.verb = chunk[1];
return modify.insertWordIntoTopic(topic, ''+clientid, 2); return modify.insertWordIntoTopic(topic, ''+clientid, 2);
} }
else if (chunk[1] == 'write' || chunk[1] == 'read') { else if (chunk[1] == 'write' || chunk[1] == 'overwrite' || chunk[1] == 'read') {
output.verb = chunk[1]; output.verb = chunk[1];
return modify.insertWordIntoTopic(topic, groupid, 2); return modify.insertWordIntoTopic(topic, groupid, 2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment