more logging
This commit is contained in:
parent
5574cb8ef7
commit
2eacef7e7c
3
irc.go
3
irc.go
@ -282,6 +282,7 @@ func (c *Connection) parseMessage(line string) {
|
|||||||
if c.JoinCallbackEx != nil {
|
if c.JoinCallbackEx != nil {
|
||||||
c.JoinCallbackEx(c, from, target)
|
c.JoinCallbackEx(c, from, target)
|
||||||
}
|
}
|
||||||
|
log.Printf("quit > %s > %s > %s", from, target, msg)
|
||||||
case "quit":
|
case "quit":
|
||||||
c.removeNickAllChans(GetNick(from))
|
c.removeNickAllChans(GetNick(from))
|
||||||
if c.QuitCallback != nil {
|
if c.QuitCallback != nil {
|
||||||
@ -309,7 +310,7 @@ func (c *Connection) parseMessage(line string) {
|
|||||||
c.NickCallback(from, msg)
|
c.NickCallback(from, msg)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
log.Printf("unhandled command: %s %s %s", cmd, target, msg)
|
//log.Printf("unhandled command: %s %s %s", cmd, target, msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user