EY6EWMGOLK3IJYPINGJN7HBRXN4S76RN3KNUKKXLZLRJTOXBZPDAC
TUTLMCPC7EA4JAKKR6K3R5QNFHNIW4N2V35DYBDZNSDBMING342QC
6XVPXUN5KKZQXWBIGCFX3JWKI3IUAODVGYEEHQJFVWKUYPM2T2JAC
BZTGBAOQBU225565NW3S5FIOE732SVOJRCG4WTRHBLA7E6ZDXAGAC
7CFD3UOWFKMZRCBYEIU2NWGSPS2EXK5AP4QZFMKUH3K3JCBOEKXAC
G5QWNM5KIWQPIT4MGOC5SBUWEIIVZS67YPIH3U5TUASHASABE2CQC
IOBPCIUEKURTTVGJ6J57XQ36EQT4CIJHJRJCAXQKZSYHSUH6L5DAC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
2H4IGAQB6WSGLKH2X2RNR4GK5CUDZ6NDRWXX2OYIYE64BLKV7QXQC
ZBABUXXS5JKOQ2DCLPSNQV5G5ZHBS6NR4QOFYYJMLVVHUP7POMZAC
HUZ3KCJMRK6FSMTH2VUMJRMAIMPA23PIGFIHTU2NMGDDRWNLNLGQC
U6MW6YR2F7YNA6LD24IF4R4DTAKCRJ6P6FG646S7QPXTAOLKEQ7AC
OQRONNAV67IUXE5ZMXVKGUFQKKOS452WBEW7ZT33YB2FVHBFUOIQC
JHXNF5UYYTCR36BEJRW764MYM5WS7MMH2NPCCFJMNXNYDJHVYNQQC
Z7MTD4KTTFVZVS3HWKBJBTZDAH6V5FA6ZZGTSI7FCPN3KTPEQJOQC
println("chat.Aliases.match_irc found $alias")
println('chat.Aliases.match_irc $nick found $alias')
return alias
}
}
return error('not found')
}
pub fn (mut self Aliases) match_matrix(nick string) ?&Alias {
for alias in self.aliases {
if alias.matrix== nick {
println('chat.Aliases.match_matrix $nick found $alias')
matrix_user := regex_self_replace(self.config.matrix_regex, name)
matrix.join([matrix_user, self.config.matrix_host])
alias := self.aliases.match_matrix(name) or {
matrix_user := regex_self_replace(self.config.matrix_regex, name)
matrix_id := matrix.join([matrix_user, self.config.matrix_host])
alias := chat.Alias{
matrix: matrix_id
irc: name
}
self.aliases.add(alias)
}
alias.matrix