tidy args match

develop
lub 7 years ago
parent 3bd728ebf6
commit c3981b3ae7

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