mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-14 16:17:17 +03:00
bugfix: Nil item
This commit is contained in:
parent
3ef404198d
commit
d16b1f5829
2
host.go
2
host.go
@ -120,7 +120,7 @@ func (h *Host) Connect(term *sshd.Terminal) {
|
||||
// Should the user be op'd on join?
|
||||
if key := term.Conn.PublicKey(); key != nil {
|
||||
authItem, err := h.auth.ops.Get(newAuthKey(key))
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
err = h.Room.Ops.Add(set.Rename(authItem, member.ID()))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user