mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Put in fix for nicks.has check being True when returning list of False matches due to None caching.
This commit is contained in:
parent
ee8c9a93c3
commit
959e5ec558
1 changed files with 1 additions and 2 deletions
|
|
@ -175,10 +175,9 @@ class CmdNick(COMMAND_DEFAULT_CLASS):
|
|||
errstring += "Not a valid nick index."
|
||||
else:
|
||||
errstring += "Nick not found."
|
||||
|
||||
if "delete" in switches or "del" in switches:
|
||||
# clear the nick
|
||||
if caller.nicks.has(old_nickstring, category=nicktype):
|
||||
if old_nickstring and caller.nicks.has(old_nickstring, category=nicktype):
|
||||
caller.nicks.remove(old_nickstring, category=nicktype)
|
||||
string += "\nNick removed: '|w%s|n' -> |w%s|n." % (old_nickstring, old_replstring)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue