mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-26 04:57:56 +02:00
ID in MemberProfile.
This commit is contained in:
parent
f361d0c681
commit
5f3b9f72cf
2 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,7 @@ type MemberID struct {
|
|||
|
||||
type MemberProfile struct {
|
||||
Event string `json:"event,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Name string `json:"name"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
CanLogin bool `json:"can_login"`
|
||||
|
|
|
@ -115,6 +115,7 @@ func (h *MessageHandlerCtx) SessionProfileUpdated(session types.Session) error {
|
|||
h.sessions.Broadcast(
|
||||
message.MemberProfile{
|
||||
Event: event.MEMBER_PROFILE_UPDATED,
|
||||
ID: session.ID(),
|
||||
Name: session.Name(),
|
||||
IsAdmin: session.IsAdmin(),
|
||||
CanLogin: session.CanLogin(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue