Skip to content

Commit 450630d

Browse files
Half-Shotreivilibre
authored andcommitted
Don't log an error on already existing
1 parent 97290d7 commit 450630d

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
@@ -134,6 +134,10 @@ export class IRCBridge {
134134
await this.ircClient.join(channel);
135135
const result = await this.executeCommand(`plumb ${roomId} ${this.config.serverName} ${channel}`);
136136
const resultText = result.content.body;
137+
if (resultText.match(/Room mapping already exists/)) {
138+
// Already bridged
139+
return;
140+
}
137141
if (resultText !== 'Room plumbed.') {
138142
throw Error(`IRC bridge gave an error: ${resultText}`);
139143
}

0 commit comments

Comments
 (0)