2H4IGAQB6WSGLKH2X2RNR4GK5CUDZ6NDRWXX2OYIYE64BLKV7QXQC
QL55K2FNVJTDIFAZD6AY4QHUA2HQGWHZ6XMF472TJDXDOCDPETWQC
N7FKDLUJMHEWOZKUNE6A4S23D7QXALICJILERSH36GZCMFAOV6KQC
ZBZDWW7FIJ24YR7MNGR7HUUHRHQX33AJWFES3G3NEM34W6BFD54AC
HUZ3KCJMRK6FSMTH2VUMJRMAIMPA23PIGFIHTU2NMGDDRWNLNLGQC
ZDTOTLRMJHRSILXNGEW6WL6CJ4TOW5ZUOC2Q6VXY3DDWGLA2Z35QC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
U3DXZNXGXFDVSO2MCK3XUY5I2XSUTCGL24OHTASDPAYLOO56ZG3QC
5E7NT577ZROMVSBTQOTF2ZTESDW4TFYZPP4XWQ2LOXMR627DBMJQC
7VX7XI4E76UTOIIJTPA3KMGP2RLYHPIXQKYX5ODHK6KPNBMF4K5AC
JFD7BGS3ANIPYT4DPN3TKDKGGKGTUHUU5LU35JRMV3KDTNHAEW5AC
XBMU2A7P2LT5TCNWPJ2PDQ6BSVRCE4AGPUHOOQD7ZEGW4PDK32VQC
GN5HJ6MQNCPQDINAHS35GUCFV3FKNHOHGVG3YF6FYAHR5MILMPDAC
SN6LXPXDTKM7LEJ73ZDYX4VG7TGAAQ7TWF3TAITAZI6AUJO5RC4QC
O774NWA2NLE34RNFCQAYXU2QVRVTPVW6O7KWXOUTCS35CX4EY4HQC
KIMLP4FXKI3DGXPQNN4Z6R2MM2XSKV5E5LBHCMRVNAG4Z3MK4VCAC
M63OP6ZDPA565QYQXIKZF4AFCULTELEOUFW75XQABIMUYKQGUVEQC
ZX547P4GSTO23FFJ6TGU4MX5A2ZP37GX6XZHU6WTTBWIJVGLF4IQC
room := self.matrix.joined_rooms.find_room_by_id(room_id) or {
matrix.Room{
id: room_id
if room := self.matrix.joined_rooms.find_room_by_id(room_id) {
nick := self.name_convert(chat.System.matrix, whoami)
if channel := self.matching_irc_channel(nick, room) {
msg = msg + 'Bridging room $room to $channel as $whoami'
} else {
msg = msg + '(no matching irc channel found for $room)'
nick := self.name_convert(chat.System.matrix, whoami)
if channel := self.matching_irc_channel(nick, room_id) {
msg = msg + 'Bridging room $room to $channel as $whoami'
} else {
msg = msg + '(no matching irc channel found for $room)'
}
self.admin_say(msg)
self.process_out_user(whoami)
fn (mut self Main) matching_irc_channel(nick string, room_id string) ?string {
// find matrix alias
// VBUG return if ...
room := self.matrix.joined_rooms.by_id(room_id) or {
return error('matching_irc_channel: room_name_by_id found nothing in $self.matrix.joined_rooms')
}
fn (mut self Main) matching_irc_channel(nick string, room &matrix.Room) ?string {
matrix_partial_name := room.name.before(':')
println('matching_irc_channel matrix room name $room.name as irc channel name $matrix_partial_name')