Merge pull request #10 from dngfx/master

Ducks.py fiddling
This commit is contained in:
jesopo 2018-08-31 17:07:08 +01:00 committed by GitHub
commit 741bd04ee7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,7 +128,7 @@ class Module(object):
sentence = sentence[0:-2] sentence = sentence[0:-2]
event["target"].send_message(sentence) event["stdout"].write(sentence)
def duck_bef(self, event): def duck_bef(self, event):
user = event["user"] user = event["user"]
@ -140,7 +140,6 @@ class Module(object):
str) else active_duck str) else active_duck
if active_duck == 0: if active_duck == 0:
event["stderr"].set_prefix("Kick")
if event["server"].has_user(target): if event["server"].has_user(target):
if not event["server"].is_own_nickname(target): if not event["server"].is_own_nickname(target):
event["target"].send_kick(target, event["target"].send_kick(target,