GN5HJ6MQNCPQDINAHS35GUCFV3FKNHOHGVG3YF6FYAHR5MILMPDAC
QJQPPSN5XHBV7JCHNWSMSYAMI3SPA7AH6YBT6RZHM6VILD3EFBWAC
K4DRWAY72CGDTYJ52KGZFEZDO5HHXOYRIYR5L2SHXXUF3BPNOWTAC
YLSNKGUDSJN3S37GCAHLNBIK22PVZNLFFLMFGM533XGZ56FVHLZQC
ZDTOTLRMJHRSILXNGEW6WL6CJ4TOW5ZUOC2Q6VXY3DDWGLA2Z35QC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
JY3V7EV6X6EJH2QANLNO3S3YXZMGEW53BCIPFNVXSKZFUBSXHCAAC
6V2WQCRS4WPHRGWQ4VFQBSUNJJ3DMZ5PD3NRPKLUZEAFEUGUKSYQC
SN6LXPXDTKM7LEJ73ZDYX4VG7TGAAQ7TWF3TAITAZI6AUJO5RC4QC
LBKFI2GRVO3NKT35RZ7R7WH4MQ6DVJEL6VC6NP3TRMACUQZIWXFAC
LK4RXODS7RCADCISBHJD5OCX57YLSC3A77AZ4JX7375S4PLL3ZDQC
VHN5PUF4LIUPT2RH7UAJEH6KCF7VXPGQVYI27SCOMB6NETVESO3QC
HIRCSAI6D4EEV57CQCFIOCHXT4FUSABC4J46ER2GQY7IED3P6ZRQC
pub fn matrix_name_match(name string) bool {
restr := '@ircbr_(.*):donp.org'
mut re := regex.regex_opt(restr) or { panic('matrix_name_match regex parse fail') }
pub fn (mut self Main) irc_name_match(name string) bool {
restr := '@${self.config.irc_regex}'
rmatch := regex_name_match(restr, name)
println('irc_name_match $restr $name => $rmatch')
return rmatch
}
pub fn regex_name_match(restr string, name string) bool {
mut re := regex.regex_opt(restr) or { panic('regex_name_match regex parse fail for $restr') }
.irc { '@ircbr_$name:$self.config.matrix_host' } //@:donpdonp|z!~donp@1.2.3.4
.matrix { matrix.split(name)[1] + '|m' }
.irc { '@' + regex_self_replace(self.config.matrix_regex, name) + self.config.matrix_host }
.matrix { regex_self_replace(self.config.irc_regex, matrix.split(name)[1]) }