mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-10-22 23:52:12 +03:00
Disallow op with no fingerprint.
This commit is contained in:
1 parent
12be9c1d1f
commit
6f46645540
2 files changed
+10
-2
No files matched your search
@@ -347,8 +347,12 @@ func (c *Client) handleShell(channel ssh.Channel) {
|
||||
c.SysMsg("No such name: %s", parts[1])
|
||||
} else {
|
||||
fingerprint := client.Fingerprint()
|
||||
client.SysMsg("Made op by %s.", c.ColoredName())
|
||||
c.Server.Op(fingerprint)
|
||||
if fingerprint == "" {
|
||||
c.SysMsg("Cannot op user without fingerprint.")
|
||||
} else {
|
||||
client.SysMsg("Made op by %s.", c.ColoredName())
|
||||
c.Server.Op(fingerprint)
|
||||
}
|
||||
}
|
||||
}
|
||||
case "/kick":
|
||||
|
||||
Reference in new issue
Block a user