Merge branch 'tellfeedback' into 'master'

added feedback

See merge request !7
This commit is contained in:
mrhanky 2017-08-23 10:53:44 +00:00
commit 8a55bf07df

View File

@ -50,10 +50,14 @@ class Tell(DatabasePlugin):
(%s, %s, %s, %s)
''', tell)
self.con.commit()
return "I will tell that to {}".format(nick)
except Error as ex:
self.log.error(ex)
self.con.rollback()
return "database error"
@irc3.event(r'(?i)^:(?P<mask>.*) PRIVMSG .* :.*')
def on_message(self, mask: str):
"""If activ nick has tells, forward and delete them."""