mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-29 22:42:09 -08:00
remove unnecessary bits
This commit is contained in:
parent
6d94aa1591
commit
c46fe12b3c
3 changed files with 24 additions and 35 deletions
|
|
@ -3201,8 +3201,8 @@ func metadataHandler(server *Server, client *Client, msg ircmsg.Message, rb *Res
|
|||
continue
|
||||
}
|
||||
|
||||
val, err := t.GetMetadata(key)
|
||||
if err == errMetadataNotFound {
|
||||
val, ok := t.GetMetadata(key)
|
||||
if !ok {
|
||||
rb.Add(nil, server.name, RPL_KEYNOTSET, client.Nick(), target, key, client.t("Key is not set"))
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue