H73SZ4LP4TNY6A2F3O3BYDXGUOQ2EEHQ5XZIXZZDE4YARDQ453KAC
OQRONNAV67IUXE5ZMXVKGUFQKKOS452WBEW7ZT33YB2FVHBFUOIQC
ILPZ4NIWVCPZ472RFFSF2WRKAN7SJX423437NSTP6BPSMUDVMT5QC
3IOKATFCBG7RT6BNZ2NBTUR244VWLGSNIJKQNOUPSMX7IPSSEJPQC
QHTD7FGR374IIWGV7XAOJREIGJBAOFJCSBLCWPL536Z42GQYNTOAC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
CRPUEZXM4UZYCYLARN6X74TXJ65NWKK4NDLHRD3DXSBQHI6IQ3BAC
72L4WKCGOEIXLIIDPQPQZVG5W2ZCJU5AWHX7EOFJNIHNEQ5S2V7QC
E77R6PDY2LC2U2HXBTMN22EI3BEMQYF6TVJFJR6KVJ5KKMZSA4GAC
4VNZQBWQEJCH3Q7RQWSWOCLBKHUCFR4WLHFQUODWW3UFIC7LB7XAC
F7UEAPOJLX43J32QD6JJ4YABOZLMQR2THHL6BGFTPSYZ35XQJSQAC
version := '\1VERSION\1'
if parts[5] != version {
self.cin <- Payload(PrivMsg{
network: ircnet
channel: parts[3]
ghost: ghost
nick: parts[0][1..] // remove : from protocol
message: parts[5]
})
mut privmsg := PrivMsg{
network: ircnet
channel: parts[3]
ghost: ghost
nick: parts[0][1..] // remove : from protocol
message: ''
}
if ctcp := self.is_ctcp(parts[5]) {
ctcp_parts := ctcp.split(' ')
match ctcp_parts[0] {
'VERSION' {}
'ACTION' {
privmsg.message = ctcp
self.cin <- Payload(privmsg)
}
else {
privmsg.message = 'unknown CTCP: ' + ctcp
self.cin <- Payload(privmsg)
}
}
} else {
privmsg.message = parts[5]
self.cin <- Payload(privmsg)