@@ -66,16 +66,18 @@ export class IrcPlumbCommand implements ICommand {
66
66
await this . ircBridge . plumbChannelToRoom ( channel , resolvedRoomId ) ;
67
67
} catch ( ex ) {
68
68
LogService . warn ( "IrcPlumbCommand" , ex ) ;
69
- return await logMessage ( LogLevel . WARN , "IrcPlumbCommand" , `Could not plumb channel to room ${ resolvedRoomId } ` ) ;
69
+ return logMessage ( LogLevel . WARN , "IrcPlumbCommand" , `Could not plumb channel to room ${ resolvedRoomId } ` ) ;
70
70
}
71
71
72
72
try {
73
73
// The bridge needs the ability to kick KLINED users.
74
74
await client . setUserPowerLevel ( this . ircBridge . botUserId , resolvedRoomId , KickPowerLevel ) ;
75
75
} catch ( ex ) {
76
76
LogService . warn ( "IrcPlumbCommand" , ex ) ;
77
- return await logMessage ( LogLevel . WARN , "IrcPlumbCommand" , `Could not plumb channel to room ${ resolvedRoomId } : could not set AS power level` ) ;
77
+ return logMessage ( LogLevel . WARN , "IrcPlumbCommand" , `Could not plumb channel to room ${ resolvedRoomId } : could not set AS power level` ) ;
78
78
}
79
+
80
+ logMessage ( LogLevel . INFO , "IrcPlumbCommand" , `Plumbed channel ${ channel } to ${ resolvedRoomId } ` ) ;
79
81
}
80
82
81
83
public async run ( conference : Conference , client : MatrixClient , roomId : string , event : any , args : string [ ] ) {
@@ -105,8 +107,6 @@ export class IrcPlumbCommand implements ICommand {
105
107
return client . sendNotice ( roomId , "Could not join that room, is the bot invited?" ) ;
106
108
}
107
109
108
- await this . plumbOne ( client , resolvedRoomId , channel ) ;
109
-
110
- return client . sendNotice ( roomId , "Plumbed channel" ) ;
110
+ return this . plumbOne ( client , resolvedRoomId , channel ) ;
111
111
}
112
112
}
0 commit comments