OIJSQWEJJQLQAPSUC5562ZGIS5EABVE6CSWLBOQYKGC7PYEZQQMAC
NXK73CXTYPQQKHXAC7W7HMNQG5HP5KTUBF4LW2XQXJMW6PQVA2HAC
X6KEJP4S7BABPDTC2CREBFIJTPLB6ITVQPIBZC3TTNNJIXEOUZCQC
2H4IGAQB6WSGLKH2X2RNR4GK5CUDZ6NDRWXX2OYIYE64BLKV7QXQC
GT63CPUQE32CZKKIB4VGZD6PESQ4CLWBAXFTR4G3NYNWAH7AILSAC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
O774NWA2NLE34RNFCQAYXU2QVRVTPVW6O7KWXOUTCS35CX4EY4HQC
LZRCFVJJ34YAVZREIDLNKKNP7P5FHBTOPJ6KRDOX46QQA2NWDD5QC
QUFTWKDJODGAASYVB6VGAL4PZT4ISS46ITMIS3PDQ5DXCH5LMUVQC
4WUO46PC2QIYZJGKTMHUVNBNWDUU45G3JRG7NB5H5QCHNMUGG67AC
OKOJFPSWRMPWOFDS6DFIDJVBVCIFVAKUEE323HMBCPVAVKMSZSIQC
RGBFPPQLCKNAPYLXODVCVHTVUYBHRRXNOWZ3KNHJLU4H6G334M4QC
N7FKDLUJMHEWOZKUNE6A4S23D7QXALICJILERSH36GZCMFAOV6KQC
7VX7XI4E76UTOIIJTPA3KMGP2RLYHPIXQKYX5ODHK6KPNBMF4K5AC
MGLPPSPTZYTHV2IW522JPA7MXU56AGFATN7O64GT3VHUIQ6H6W2QC
partial_name := room.name.before(':')
println('room_name comparing $partial_name to $room_name')
if partial_name == room_name {
return room
if room.name.len > 0 { //this_room_name := room.name {
partial_name := room.name.before(':')
println('room_name comparing $partial_name to $room_name')
if partial_name == room_name {
return room
}
matrix_partial_name := room.name.before(':')
println('matching_irc_channel matrix room name $room.name as irc channel name $matrix_partial_name')
if room.name.len > 0 { // VBUG: name := room.name {
matrix_partial_name := room.name.before(':')
println('matching_irc_channel matrix room name $room.name as irc channel name $matrix_partial_name')
mut sname := ''
// db search
rows := self.db.select_by_field('irc_channels', 'channel', matrix_partial_name)
if rows.len > 0 {
println('matching_irc_channel found $matrix_partial_name in irc_channels db')
sname = rows[0][0]
} else {
// connected channels search
if ircc := self.irc.find_channel_by_name(nick, matrix_partial_name) {
sname = ircc.name
mut sname := ''
// db search
rows := self.db.select_by_field('irc_channels', 'channel', matrix_partial_name)
if rows.len > 0 {
println('matching_irc_channel found $matrix_partial_name in irc_channels db')
sname = rows[0][0]
return error('warning: matching_irc_channel found no irc channel for nick $nick matrix_room $matrix_partial_name')
// connected channels search
if ircc := self.irc.find_channel_by_name(nick, matrix_partial_name) {
sname = ircc.name
} else {
return error('warning: matching_irc_channel found no irc channel for nick $nick matrix_room $matrix_partial_name')
}