log fix
This commit is contained in:
parent
709f506058
commit
969d25fdb5
12
main.go
12
main.go
|
@ -80,12 +80,14 @@ start:
|
||||||
case *xmpp.ClientPresence:
|
case *xmpp.ClientPresence:
|
||||||
PresenceHandler(Conn, t)
|
PresenceHandler(Conn, t)
|
||||||
case *xmpp.ClientMessage:
|
case *xmpp.ClientMessage:
|
||||||
if len(t.Delay.Stamp) == 0 && len(t.Subject) == 0 && GetNick(t.From) != name {
|
if len(t.Delay.Stamp) == 0 && len(t.Subject) == 0 {
|
||||||
log.Println(t)
|
log.Println(t)
|
||||||
if t.Type == "groupchat" {
|
if GetNick(t.From) != name {
|
||||||
go MessageHandler(Conn, t)
|
if t.Type == "groupchat" {
|
||||||
} else if xmpp.RemoveResourceFromJid(strings.ToLower(t.From)) == me {
|
go MessageHandler(Conn, t)
|
||||||
go SelfHandler(Conn, t)
|
} else if xmpp.RemoveResourceFromJid(strings.ToLower(t.From)) == me {
|
||||||
|
go SelfHandler(Conn, t)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue