mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 23:47:16 +02:00
Fix an error when giving an invalid channel name to delcom. Resolves #1032.
This commit is contained in:
parent
9d00f1ddfd
commit
7e451951fa
1 changed files with 3 additions and 1 deletions
|
|
@ -682,7 +682,9 @@ class NickHandler(AttributeHandler):
|
|||
return super(NickHandler, self).get(key=key, category=category, **kwargs)
|
||||
else:
|
||||
retval = super(NickHandler, self).get(key=key, category=category, **kwargs)
|
||||
return retval[3] if isinstance(retval, tuple) else [tup[3] for tup in make_iter(retval)]
|
||||
if retval:
|
||||
return retval[3] if isinstance(retval, tuple) else [tup[3] for tup in make_iter(retval)]
|
||||
return None
|
||||
|
||||
def add(self, key, replacement, category="inputline", **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue