mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-10-25 01:06:20 +03:00
bugfix: Nil item
This commit is contained in:
1 parent
3ef404198d
commit
d16b1f5829
1 file changed
+1
-1
@@ -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()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user