SUH4BQLPGHDR2W2VCWZOXG2CU3RRFBMWAH4EQIFKO4SB4YRNJRRQC
pub fn (mut self Main) admin_say(msg string) {
mut room := matrix.Room{}
if self.config.admin_room.len > 0 {
if this_room := self.matrix.joined_rooms.find_room_by_name(self.config.admin_room) {
room = this_room
} else {
println('warning admin_say has no room $self.config.admin_room')
}
} else {
if this_room := self.matrix.joined_rooms.dm(self.config.matrix_owner) {
room = this_room
} else {
}
}
chat.say(self.out_chan, chat.System.matrix, self.config.matrix_host, 'admin', msg)
}