summaryrefslogtreecommitdiffstats
path: root/bridge/gitter
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/gitter')
-rw-r--r--bridge/gitter/gitter.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go
index 95375b1f..ffc5e93f 100644
--- a/bridge/gitter/gitter.go
+++ b/bridge/gitter/gitter.go
@@ -65,8 +65,7 @@ func (b *Bgitter) JoinChannel(channel string) error {
go b.c.Listen(stream)
go func(stream *gitter.Stream, room string) {
- for {
- event := <-stream.Event
+ for event := range stream.Event {
switch ev := event.Data.(type) {
case *gitter.MessageReceived:
// check for ZWSP to see if it's not an echo