diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2020-12-11 14:11:02 +0300 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2020-12-11 14:11:49 +0300 |
commit | 5372c12a6a4a925478364329a8f0d3d787d7b4a2 (patch) | |
tree | ec7ad6ced520c81c726c1b224a97b0413a4af5ab /lib | |
parent | be0ed4a7f5f3b7eaa8acef96258862929dfd729f (diff) |
refs #4719 all bridge services have a channel key
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MatterbridgeManager.php | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/MatterbridgeManager.php b/lib/MatterbridgeManager.php index 82c813706..7a243ccf1 100644 --- a/lib/MatterbridgeManager.php +++ b/lib/MatterbridgeManager.php @@ -496,19 +496,11 @@ class MatterbridgeManager { $content .= '[[gateway.inout]]' . "\n"; $content .= sprintf(' account = "%s.%s"', $type, $k) . "\n"; - if (in_array($type, ['zulip', 'discord', 'xmpp', 'irc', 'slack', 'rocketchat', 'mattermost', 'matrix', 'nctalk'])) { - $content .= sprintf(' channel = "%s"', $part['channel']) . "\n"; - if ($type === 'irc' && $part['channelpassword']) { - $content .= sprintf(' options = { key = "%s" }', $part['channelpassword']) . "\n"; - } - $content .= "\n"; - } elseif ($type === 'msteams') { - $content .= sprintf(' threadId = "%s"', $part['threadid']) . "\n\n"; - } elseif ($type === 'telegram') { - $content .= sprintf(' channel = "%s"', $part['channel']) . "\n\n"; - } elseif ($type === 'steam') { - $content .= sprintf(' chatid = "%s"', $part['chatid']) . "\n\n"; + $content .= sprintf(' channel = "%s"', $part['channel']) . "\n"; + if ($type === 'irc' && $part['channelpassword']) { + $content .= sprintf(' options = { key = "%s" }', $part['channelpassword']) . "\n"; } + $content .= "\n"; } return $content; |