mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-16 18:47:03 +02:00
IsAdmin + IsConnected.
This commit is contained in:
parent
25fec63455
commit
123fbd8317
8 changed files with 16 additions and 16 deletions
|
@ -11,7 +11,7 @@ func (h *MessageHandlerCtx) SessionConnected(session types.Session) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if session.Admin() {
|
||||
if session.IsAdmin() {
|
||||
if err := h.systemAdmin(session); err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ func (h *MessageHandlerCtx) SessionConnected(session types.Session) error {
|
|||
Event: event.MEMBER_CONNECTED,
|
||||
ID: session.ID(),
|
||||
Name: session.Name(),
|
||||
IsAdmin: session.Admin(),
|
||||
IsAdmin: session.IsAdmin(),
|
||||
}, nil)
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue