um.. what does o contain again
This commit is contained in:
parent
b5638242f1
commit
7cf91c0df2
|
@ -54,6 +54,9 @@ p.run = function (o) {
|
||||||
level = level !== undefined ? level.split("").map(x=>userLevels.indexOf(x)).sort().pop() : -1;
|
level = level !== undefined ? level.split("").map(x=>userLevels.indexOf(x)).sort().pop() : -1;
|
||||||
if (level === null || level === undefined) level = -1;
|
if (level === null || level === undefined) level = -1;
|
||||||
switch(o.cmd) {
|
switch(o.cmd) {
|
||||||
|
case ".watiso":
|
||||||
|
client.say(o.to, JSON.stringify(o));
|
||||||
|
return true;
|
||||||
case ".level":
|
case ".level":
|
||||||
client.say(o.to, o.from + " dein level: " + userLevelNames[level]);
|
client.say(o.to, o.from + " dein level: " + userLevelNames[level]);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user