only try to delete !to messages when there are any
This commit is contained in:
parent
558b368b1a
commit
f143169cb5
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@ class Module(object):
|
||||||
for nickname, message in messages:
|
for nickname, message in messages:
|
||||||
event["channel"].send_message("%s: <%s> %s" % (
|
event["channel"].send_message("%s: <%s> %s" % (
|
||||||
event["user"].nickname, nickname, message))
|
event["user"].nickname, nickname, message))
|
||||||
|
if messages:
|
||||||
event["channel"].del_setting(setting)
|
event["channel"].del_setting(setting)
|
||||||
|
|
||||||
def to(self, event):
|
def to(self, event):
|
||||||
|
|
Loading…
Reference in a new issue