mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
OnProfileChanged add new & old profile.
This commit is contained in:
@ -83,12 +83,12 @@ func (h *MessageHandlerCtx) SessionDisconnected(session types.Session) error {
|
||||
return h.SessionStateChanged(session)
|
||||
}
|
||||
|
||||
func (h *MessageHandlerCtx) SessionProfileChanged(session types.Session) error {
|
||||
func (h *MessageHandlerCtx) SessionProfileChanged(session types.Session, new, old types.MemberProfile) error {
|
||||
h.sessions.Broadcast(
|
||||
event.SESSION_PROFILE,
|
||||
message.MemberProfile{
|
||||
ID: session.ID(),
|
||||
MemberProfile: session.Profile(),
|
||||
MemberProfile: new,
|
||||
})
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user