Merge branch 'tellfeedback' into 'master'

now it's done

See merge request !8
This commit is contained in:
mrhanky 2017-08-23 11:04:03 +00:00
commit 0e1a92f1fd

View File

@ -51,12 +51,12 @@ class Tell(DatabasePlugin):
''', tell) ''', tell)
self.con.commit() self.con.commit()
return "I will tell that to {}".format(nick) self.bot.notice(mask.nick, "I will tell that to {} when I see them.".format(nick))
except Error as ex: except Error as ex:
self.log.error(ex) self.log.error(ex)
self.con.rollback() self.con.rollback()
return "database error" self.bot.notice(mask.nick, "database error")
@irc3.event(r'(?i)^:(?P<mask>.*) PRIVMSG .* :.*') @irc3.event(r'(?i)^:(?P<mask>.*) PRIVMSG .* :.*')
def on_message(self, mask: str): def on_message(self, mask: str):