master
Skylar Ittner 3 years ago
parent 32d411c8b2
commit b9fd279b9a

@ -366,7 +366,7 @@ client.login("m.login.password", {"user": settings.matrixuser, "password": setti
} }
return; return;
} }
const matches = room.name.match(/SMS_([1-9][0-9]+)_?([1-9][0-9]+)?/); const matches = room.name.match(/SMS_([1-9][0-9]+)_?([1-9][0-9]+)?/g);
if (matches.length == 1) { if (matches.length == 1) {
var tel = matches[0]; var tel = matches[0];
logger.info("Got message for " + tel + " from " + event.getSender() + ", relaying."); logger.info("Got message for " + tel + " from " + event.getSender() + ", relaying.");

Loading…
Cancel
Save