commit 4b3aed105d609c896da3cf34620f2dc6d074c7cf
Author: Wim <wim@42.be>
Date: Sat Nov 26 15:06:05 2016 +0000
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go
index 9ec6b23..e41baf8 100644
--- a/bridge/xmpp/xmpp.go
+++ b/bridge/xmpp/xmpp.go
@@ -986 +987 @@ func (b *Bxmpp) xmppKeepAlive() chan bool {
func (b *Bxmpp) handleXmpp() error {
done := b.xmppKeepAlive()
defer close(done)
+ nodelay := time.Time{}
for {
m, err := b.xc.Recv()
if err != nil {
@@ -1157 +1167 @@ func (b *Bxmpp) handleXmpp() error {
if len(s) == 2 {
nick = s[1]
}
- if nick != b.Config.Nick {
+ if nick != b.Config.Nick && v.Stamp == nodelay && v.Text != "" {
flog.Debugf("Sending message from %s on %s to gateway", nick, b.Account)
b.Remote <- config.Message{Username: nick, Text: v.Text, Channel: channel, Account: b.Account}
}