B:BD[
3.203] → [
3.203:269]
bridge := bridge.Bridge{
left: left
right: right
matrix_server := left.split(':')[1]
if matrix_server == self.config.matrix_host {
irc_net := right.split(':')[1]
if _ := self.irc.find_server(irc_net) {
bridge := bridge.Bridge{
left: left
right: right
}
self.db.insert('bridge_rooms', bridge.to_db())
} else {
self.chat.say(system, '', network, room_id, '$irc_net is not a known irc network. use !irc add')
}
} else {
self.chat.say(system, '', network, room_id, '$left must be a channel on $self.config.matrix_host')