747LMY4CU4Y6POVT5ASHZ5CWIU5CK6CJZ4H6BSKDPOOMJTBCFD6QC
if parts.len == 3 {
left := parts[1]
right := parts[2]
self.chat.say(system, '', network, room_id, '!bridge $left $right')
bridge := bridge.Bridge{
left: left
right: right
}
self.db.insert('bridges', bridge.to_db())
return false
}
if parts.len == 2 {
if parts.len > 1 {
}
}
'add' {
if parts.len == 4 {
left := parts[2]
right := parts[3]
bridge := bridge.Bridge{
left: left
right: right
}
self.db.insert('bridges', bridge.to_db())
} else {
self.chat.say(system, '', network, room_id, '!bridge add room1 room2')
}
}
'del' {
if parts.len == 3 {
self.db.delete_by_field('bridges', 'left', parts[2])
self.db.delete_by_field('bridges', 'right', parts[2])