Commit a6ab5fd5 by Chavee Issariyapat

interchange the word set/get with write/read

parent 36ac6b46
...@@ -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] == 'write' || chunk[1] == 'read') { if (chunk[1] == 'set' || 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] == 'set' || chunk[1] == 'get') { else if (chunk[1] == 'write' || 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