Catch UserNotFoundException in var e
This commit is contained in:
parent
920c1d2cd8
commit
cb25f70418
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._kick(event["server"], channel, target, reason)
|
self._kick(event["server"], channel, target, reason)
|
||||||
except UserNotFoundException:
|
except UserNotFoundException as e:
|
||||||
event["stderr"].write(str(e))
|
event["stderr"].write(str(e))
|
||||||
|
|
||||||
@utils.hook("received.command.kick", private_only=True, min_args=2)
|
@utils.hook("received.command.kick", private_only=True, min_args=2)
|
||||||
|
|
Loading…
Reference in a new issue