Skip to content

Commit cf04327

Browse files
committed
Don't log an error on already existing
1 parent 5d6fa5f commit cf04327

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/IRCBridge.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ export class IRCBridge {
127127
await this.ircClient.join(channel);
128128
const result = await this.executeCommand(`plumb ${roomId} ${this.config.serverName} ${channel}`);
129129
const resultText = result.content.body;
130+
if (resultText.match(/Room mapping already exists/)) {
131+
// Already bridged
132+
return;
133+
}
130134
if (resultText !== 'Room plumbed.') {
131135
throw Error(`IRC bridge gave an error: ${resultText}`);
132136
}

0 commit comments

Comments
 (0)