From 41b4e64be9216f5fa6db694b7a8f47f34ca415be Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Thu, 10 Dec 2020 07:06:27 +0800 Subject: Update go-nc-talk (nctalk) (#1333) Signed-off-by: Gary Kim --- bridge/nctalk/nctalk.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bridge/nctalk/nctalk.go') diff --git a/bridge/nctalk/nctalk.go b/bridge/nctalk/nctalk.go index 6af819af..2f12e4e2 100644 --- a/bridge/nctalk/nctalk.go +++ b/bridge/nctalk/nctalk.go @@ -83,6 +83,13 @@ func (b *Btalk) JoinChannel(channel config.ChannelInfo) error { go func() { for msg := range c { msg := msg + + if msg.Error != nil { + b.Log.Errorf("Fatal message poll error: %s\n", msg.Error) + + return + } + // ignore messages that are one of the following // * not a message from a user // * from ourselves -- cgit v1.2.3