7VX7XI4E76UTOIIJTPA3KMGP2RLYHPIXQKYX5ODHK6KPNBMF4K5AC
XYABDZTWRXMOM4557ZG6PVERNRS2QFAC2MORIN5WOTXQ5JNKDWHAC
M63OP6ZDPA565QYQXIKZF4AFCULTELEOUFW75XQABIMUYKQGUVEQC
LJZEEQHTC6TPCTB4XMXWTKQMGT4X4FU7YQWAGAGF644ULSSRGZPAC
O774NWA2NLE34RNFCQAYXU2QVRVTPVW6O7KWXOUTCS35CX4EY4HQC
D5WIJLNIFO5S66YXYKAHSU2VZJ6SJ7BVAUHDJMGX4ABVRGJYHZYAC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
K4DRWAY72CGDTYJ52KGZFEZDO5HHXOYRIYR5L2SHXXUF3BPNOWTAC
AETEUT6ER7MJXNYTBH5RHUT5URSRWNBJPXU2CA4URLSNAZYMWPIAC
IH55IN7GHV35RATH5Z2H67PT4HHNOE3YF2ODKW2WXQZQDN54Q3DAC
WGVL3HYM553WLJHVUDVDNAWEDU5V6EOJEJBJHKLJS3AE4DT3TNMAC
45ZIQ24ZWQJY5SZ7SSJOEWJNUJJMVMCQCJDGXMTW7GR4YFPRXUNQC
CNAO2PSWRMDTH3DCK4OI6RJCG7AI4FQDYTCXBEYSDCY6JKTAOT2QC
B5EQK6YSRS2YL3C4MXWCOUDYDEOB46LXAZNRCSXC7STIME7W6JQAC
KIMLP4FXKI3DGXPQNN4Z6R2MM2XSKV5E5LBHCMRVNAG4Z3MK4VCAC
MGLPPSPTZYTHV2IW522JPA7MXU56AGFATN7O64GT3VHUIQ6H6W2QC
YADBQ5GX5MFWFNBCM5LT5X5UMFAFC5T5LPKMR2HRCTO2PJWFGTAQC
msg := 'Hello I am $self.matrix.whoami '
self.chat.say(chat.System.matrix, self.matrix.whoami, '', room_id,
msg)
mut msg := 'Hello I am ${self.matrix.whoami}.'
nick := self.name_convert(chat.System.matrix, self.matrix.whoami)
if room := self.matching_irc_channel(nick, room_id) {
msg = msg + 'Bridging this room to $room as $nick'
} else {
msg = msg + '(no matching irc channel found)'
}
// self.chat.say(chat.System.matrix, self.matrix.whoami, '', room_id, msg)
self.admin_say(msg)
mut matrix_name := ''
if mn := self.matrix.joined_rooms.room_name_by_id(room_name) {
println('matching_irc_channel: room_name_by_id $room_name found $mn')
matrix_name = mn
} else {
println('matching_irc_channel: room_name_by_id found nothing in $self.matrix.joined_rooms')
matrix_name = room_name
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')