Additional error checking on user record deletion
This commit is contained in:
parent
f0fff7c958
commit
aa54759337
|
@ -115,7 +115,10 @@ def delUser(name, channel, nick, user):
|
|||
p.srem(namespace, nick)
|
||||
if channels == {channel.encode()}:
|
||||
p.delete(chanspace)
|
||||
if user:
|
||||
p.srem(gnamespace, user)
|
||||
else:
|
||||
warn("Attempt to delete nonexistent user: %s" % user)
|
||||
else:
|
||||
p.srem(chanspace, channel)
|
||||
p.execute()
|
||||
|
|
Loading…
Reference in New Issue