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,7 +15,8 @@ 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))
|
||||||
event["channel"].del_setting(setting)
|
if messages:
|
||||||
|
event["channel"].del_setting(setting)
|
||||||
|
|
||||||
def to(self, event):
|
def to(self, event):
|
||||||
setting = "to-%s" % event["args_split"][0]
|
setting = "to-%s" % event["args_split"][0]
|
||||||
|
|
Loading…
Reference in a new issue