summaryrefslogtreecommitdiffstats
path: root/bridge/rocketchat/helpers.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-03-24 20:15:15 +0100
committerGitHub <noreply@github.com>2019-03-24 20:15:15 +0100
commit16763b715acf4c96e733f388ba180d48a7be78d4 (patch)
tree604e01bf7a3c91dea8db3fc71f599f183a2ec5b7 /bridge/rocketchat/helpers.go
parentffaa59879662204017b2fa2904f7cf6146f909d0 (diff)
downloadmatterbridge-msglm-16763b715acf4c96e733f388ba180d48a7be78d4.tar.gz
matterbridge-msglm-16763b715acf4c96e733f388ba180d48a7be78d4.tar.bz2
matterbridge-msglm-16763b715acf4c96e733f388ba180d48a7be78d4.zip
Look up #channel too (rocketchat). Fix #773 (#775)
Diffstat (limited to 'bridge/rocketchat/helpers.go')
-rw-r--r--bridge/rocketchat/helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/rocketchat/helpers.go b/bridge/rocketchat/helpers.go
index c6bd2dd8..9fca4a6d 100644
--- a/bridge/rocketchat/helpers.go
+++ b/bridge/rocketchat/helpers.go
@@ -95,7 +95,7 @@ func (b *Brocketchat) getChannelID(name string) string {
b.RLock()
defer b.RUnlock()
for k, v := range b.channelMap {
- if v == name {
+ if v == name || v == "#"+name {
return k
}
}