Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit ff6d8d6d71ec392cd700bcf7075ba5d549135239 Author: Wim <wim@42.be> Date: Mon Jul 03 22:10:26 2017 +0000 Fix channel id off by 0x18000000000000 (steam) diff --git a/bridge/steam/steam.go b/bridge/steam/steam.go index 491612d..5f40972 100644 --- a/bridge/steam/steam.go +++ b/bridge/steam/steam.go @@ -1017 +1019 @@ func (b *Bsteam) handleEvents() {   case *steam.ChatMsgEvent:   flog.Debugf("Receiving ChatMsgEvent: %#v", e)   flog.Debugf("Sending message from %s on %s to gateway", b.getNick(e.ChatterId), b.Account) - msg := config.Message{Username: b.getNick(e.ChatterId), Text: e.Message, Channel: strconv.FormatInt(int64(e.ChatRoomId), 10), Account: b.Account, UserID: strconv.FormatInt(int64(e.ChatterId), 10)} + // for some reason we have to remove 0x18000000000000 + channel := int64(e.ChatRoomId) - 0x18000000000000 + msg := config.Message{Username: b.getNick(e.ChatterId), Text: e.Message, Channel: strconv.FormatInt(channel, 10), Account: b.Account, UserID: strconv.FormatInt(int64(e.ChatterId), 10)}   b.Remote <- msg   case *steam.PersonaStateEvent:   flog.Debugf("PersonaStateEvent: %#v\n", e)