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A5SSULWQC
QL6XMZVF4SF7IRDMR2EYCPVTBMO6XMNE3RHFKFFD7HYFVLZNPT5QC
D5WIJLNIFO5S66YXYKAHSU2VZJ6SJ7BVAUHDJMGX4ABVRGJYHZYAC
4ZIQ4TM73PUX5BEMYHIWRWEKDTBWX3YM5MI7BZHDCFSSSHILGZNAC
62BBXDSKPPFH5H4QDFPR7PTI3PPMGDOXGXTRT6GEXKB4VGQ6QPLQC
MGLPPSPTZYTHV2IW522JPA7MXU56AGFATN7O64GT3VHUIQ6H6W2QC
X4KEPD4Y6WNIIBHTRQ2EIUKOX2CAU6CH74U2U5AFVV3ZJ6TMSV3QC
ZJXMKLGPT3GPDL4FJ4TKWUHZR35UVG3QDNTW4K4WP4BMGJ76C23AC
X7STOIL2UUFMDKC7MTQNKFP5IX25NXNKINMZQQDK635ZKQJWQHRAC
SUH4BQLPGHDR2W2VCWZOXG2CU3RRFBMWAH4EQIFKO4SB4YRNJRRQC
system, room := self.room_match(chat.System.irc, irc_m.channel)
partial_irc_nick := irc_m.nick.split('!')[0]
name := self.name_match(chat.System.irc, partial_irc_nick)
self.chat.say(system, name, '', room, irc_m.message)
if room := self.matching_matrix_channel(irc_m.channel) {
partial_irc_nick := irc_m.nick.split('!')[0]
name := self.name_match(chat.System.irc, partial_irc_nick)
self.chat.say(chat.System.matrix, name, '', room, irc_m.message)
}
system, room := self.room_match(chat.System.matrix, room_id)
name := self.name_match(chat.System.matrix, sender)
self.chat.say(system, name, '', room, body)
if room := self.matching_irc_channel(room_id) {
name := self.name_match(chat.System.matrix, sender)
self.chat.say(chat.System.irc, name, '', room, body)
}
}
}
pub fn (mut self Main) room_match(network chat.System, room_name string) (chat.System, string) {
println('room_match $network $room_name')
// VBUG `match` expression branch has unsupported statement (`v.ast.IfExpr`)
// when this block is inside .matrix {}
other_system, other_room := match network {
.irc {
chat.System.matrix, self.matching_matrix_channel(room_name)
}
.matrix {
chat.System.irc, self.matching_irc_channel(room_name)
}