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U4WPF43OOXHKTL2UBFKEAC
PGTP3KMNHNCPVAZAIJTXNPY3V6SC4MSRPCCHUUJJXDWBF4V5SHJQC
LQ4PQPQ4UBNOSVNKK7SUC62LJP2MMRZ32TELZYX4HSDTPNV5MFXQC
F6YYDWAJNFUFGSQ3UNNL5NWE7O43B675Y5IK2EPBLT3KSXSPFAMAC
FYZR4C4QALFKR3QFFT2IVFRNXQ2PJC5RLHIU7DZXP6AEJHMBGUTQC
G75GKIHTWYRFRSKFS2FRRL3LKIN7LXSFKRT2WG3I2GPFI4SQJ3CAC
LNGUDOUQK35O5IIUHSVJ5LW54JA7QNMNCJGQNYWPRDUSK6R4XCLQC
V7HS237PBWI3JIA2FKGHVZ6CXT2BFE6VMXGZSJD7RGD6A3U2ISGQC
W2M2UMQWCG5K3MYSCAJJADB7FGYAM4ODV6BEBAEBPM7J3ZJCHCBAC
XWKX7SLAF5TVGPZTUF43XP6JW5QVMUAW2CHLPP3KBNZP7YCLOFIQC
GJG4W23FRRNBABPBTE57FMXQDVEN67TA5QVES6JBUS6RVEJSYTZAC
5X6GHU7OPRGKRGT5PJBQOJMP3AFMM4HZQ47X5EH7DDXCTCWA6LIQC
M6OET34YASLXAXZ33UTDM5R26YZOIYC2BIGMCAQIVVKAHVWTHOPQC
JNH3WFMLVA7LQTESIA56TXIPGG2XD4L67XT55YTKQ7KCYHYTMBVQC
I4SAB3ZORIAJOCA3KQIWVXBP4IDK3H7VUUJRTHPNGSPA7XCPJMCAC
P5VPAF54HPN2KJACMZ2VGODJRFAKYBSKPN6Y7WYIWNVMGA72IETQC
sb.write('HTTP/1.1 $status_code $status\r\n')
sb.write('Content-Type: application/json\r\n')
sb.write('Content-Length: $body.len\r\n')
sb.write('Connection: close\r\n')
sb.write('\r\n')
sb.write_string('HTTP/1.1 $status_code $status\r\n')
sb.write_string('Content-Type: application/json\r\n')
sb.write_string('Content-Length: $body.len\r\n')
sb.write_string('Connection: close\r\n')
sb.write_string('\r\n')
irc: &irc.setup(irc_chan)
appsvc: &appsvc.setup(appsvc_chan, config)
matrix: &matrix.init(config)
rpc: &rpc.init(rpc_chan, config)
irc: irc.setup(irc_chan)
appsvc: appsvc.setup(appsvc_chan, config)
matrix: matrix.init(config)
rpc: rpc.init(rpc_chan, config)
c := m['content'].as_map()
room := m['room_id'].str()
println('user ${m['state_key']} room $room is ${c['membership']}')
c := cmd.data['content'].as_map()
room := cmd.data['room_id'].str()
println('user ${cmd.data['state_key']} room $room is ${c['membership']}')
pub fn (mut self Main) join_request(room string) {
sql_stmt := "select * from irc_channels where name = '$room'"
println(sql_stmt)
self.db.exec(sql_stmt)
pub fn (mut self Main) join_request(system chat.System, network string, room string) {
sql_stmt := match system {
.irc {
"select * from irc_channels where name = '$room'"
}
.matrix {
"select * from matrix_channels where room_id = '$room'"
}
}
println(sql_stmt)
self.db.exec(sql_stmt)