diff --git a/main.js b/main.js index d470146..7b5d291 100644 --- a/main.js +++ b/main.js @@ -518,7 +518,7 @@ client.login("m.login.password", {"user": settings.matrixuser, "password": setti } if (event.getContent().body.toLowerCase().startsWith("!fixusers")) { - sendMatrixNotice(event.getRoomId(), "Inviting missing users across all SMS chats."); + sendMatrixNotice(event.getRoomId(), "Inviting missing users across all SMS chats. You may need to run this command several times, there's a server limit to how many invites can be sent at once."); client.getJoinedRooms().then(function (rooms) { var roomlist = rooms.joined_rooms; @@ -543,7 +543,7 @@ client.login("m.login.password", {"user": settings.matrixuser, "password": setti sendMatrixNotice(event.getRoomId(), "Malformed command detected, ignoring."); return; } - + var matches = room.name.match(/SMS_([1-9][0-9]+)(?:_([1-9][0-9]+))?/g); console.log(event.getRoomId()); if (matches == null || (matches.length != 1 && matches.length != 2)) {