zcommand: Add light/dark mode command aliases for day/night mode.

Fixes #10095.
This commit is contained in:
Cynthia Lin
2017-08-10 16:59:01 -07:00
committed by showell
parent 510c97d861
commit 29442ffb93
2 changed files with 9 additions and 10 deletions

View File

@@ -77,12 +77,8 @@ exports.process = function (message_content) {
return true;
}
if (content === '/day') {
update_setting(content);
return true;
}
if (content === '/night') {
var mode_commands = ['/day', '/night', '/light', '/dark'];
if (mode_commands.indexOf(content) >= 0) {
update_setting(content);
return true;
}