um.. what does o contain again

This commit is contained in:
GottZ 2018-04-25 12:57:22 +02:00
parent b5638242f1
commit 7cf91c0df2
No known key found for this signature in database
GPG Key ID: 68207F1F516E4FD2

View File

@ -54,6 +54,9 @@ p.run = function (o) {
level = level !== undefined ? level.split("").map(x=>userLevels.indexOf(x)).sort().pop() : -1;
if (level === null || level === undefined) level = -1;
switch(o.cmd) {
case ".watiso":
client.say(o.to, JSON.stringify(o));
return true;
case ".level":
client.say(o.to, o.from + " dein level: " + userLevelNames[level]);
return true;