G5QWNM5KIWQPIT4MGOC5SBUWEIIVZS67YPIH3U5TUASHASABE2CQC
module chat
pub enum System {
irc
matrix
}
pub struct Say {
pub:
system System
room string
message string
}
pub fn say(out chan Say, chat System, room string, message string) {
system := match chat {
.irc {
System.irc
}
.matrix {
System.matrix
}
}
msg := Say{
system: system
room: room
message: message
}
out <- msg
}