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:
|
||||
event["channel"].send_message("%s: <%s> %s" % (
|
||||
event["user"].nickname, nickname, message))
|
||||
if messages:
|
||||
event["channel"].del_setting(setting)
|
||||
|
||||
def to(self, event):
|
||||
|
|
Loading…
Reference in a new issue