CX76CSXNSDYGXHQI77DUWIG3YSVPNBA4JBY2EMUGL7WHMQBK5UDQC
4NP67IZLLWWBY4M6GJUSCAWG3X5BKEBJQXNXQMM6GXIENYBPTNRAC
JHMT3G54OHUDHJJYGPZY5VBAUWEYF3MDQICTL5F5KPLTQ3SF3BLQC
XBMU2A7P2LT5TCNWPJ2PDQ6BSVRCE4AGPUHOOQD7ZEGW4PDK32VQC
3ZE4YIXX3UAKYLD2EJSIX2DPHFUOF3TOUKBPHG4UKX4UOP7DPSEQC
RWMEP5UFXCEYF2H6FLA4DMMACRSLDTQVC5ZTMZWU7ZKWU7FGK4KAC
UVIYATD4MYOGYRLNSFTSVP7QN4JZ5BFIYCK6ILLHUYITHF2HHQEQC
F7UEAPOJLX43J32QD6JJ4YABOZLMQR2THHL6BGFTPSYZ35XQJSQAC
667FS3LNYG3CU56QEELKCTQ7CVXQXZXJ6YPLKQCHKF6EP6D3U3VQC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
P55KFFWQA4XHWREYQ7OTR2EP2SFWHORAT4YKH22OZMYVNZUZQC6AC
ZMJSFPLI2KQY7HW3KODWOLXNX5SYZ6EELP2XTDVW4XGCZRHFEBJQC
QJQPPSN5XHBV7JCHNWSMSYAMI3SPA7AH6YBT6RZHM6VILD3EFBWAC
VSXY63RCAE4WDARTVOW6YDD6VPMRBNASRD73R4UMZDAAQX7MAVTAC
real_network := if system == chat.System.matrix {
if self.irc.networks.len == 1 {
self.irc.networks[0].hostname // pick the only one
} else {
'todo'
}
} else {
network
}
match self.join_request_irc(real_network, room) {
.saved {
msg = 'irc room $room added'
// go self.sync_irc_channels()
}
.already_joined {
msg = 'irc room $room already added'
}
}
'join' {
if parts.len == 4 {
mut msg := ''
network_name := parts[2]
room := parts[3]
if join_network := self.irc.find_server(network_name) {
match self.join_request_irc(join_network.name, room) {
.saved {
msg = 'irc room $room added'
// go self.sync_irc_channels()
}
.already_joined {
msg = 'irc room $room already added'
}
}
} else {
msg = 'no network named ${network_name}. use !irc list'
}
self.chat.say(system, '', network, room_id, msg)
} else {
self.chat.say(system, '', network, room_id, 'usage: !irc join <network name> <#channel>')
}
}