tidy args match

master
lub 7 years ago
parent 19f1f93cfa
commit c928a24f51

@ -89,7 +89,7 @@ matrixclient.on('Room.timeline', function(event, room, resettimeline) {
if(commands[project] !== undefined) { if(commands[project] !== undefined) {
let command = commands[project]; let command = commands[project];
let args = body.match(command['regex']); const args = body.match(command.regex);
if(args === null) { if(args === null) {
matrixclient.sendNotice(room.roomId, 'usage: ' + command.usage); matrixclient.sendNotice(room.roomId, 'usage: ' + command.usage);
return; return;