log fix
This commit is contained in:
parent
709f506058
commit
969d25fdb5
4
main.go
4
main.go
|
@ -80,8 +80,9 @@ start:
|
|||
case *xmpp.ClientPresence:
|
||||
PresenceHandler(Conn, t)
|
||||
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)
|
||||
if GetNick(t.From) != name {
|
||||
if t.Type == "groupchat" {
|
||||
go MessageHandler(Conn, t)
|
||||
} else if xmpp.RemoveResourceFromJid(strings.ToLower(t.From)) == me {
|
||||
|
@ -90,6 +91,7 @@ start:
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
log.Println(Conn.Close(), "\n\t", "wtf am I doing here?")
|
||||
time.Sleep(5 * time.Second)
|
||||
goto start
|
||||
|
|
Loading…
Reference in New Issue