def add_quote(db, chan, target, sender, message):
 try:
  query = qtable.insert().values(chan=chan, nick=target.lower(), add_nick=sender.lower(), msg=message, time=time.time())
  db.execute(query)
  db.commit()
 except IntegrityError:
  return 'Message already stored, doing nothing.'
 return 'Quote added.'

def add_quote ( db , chan , target , sender , message ) : try : query = qtable . insert ( ) . values ( chan = chan , nick = target . lower ( ) , add_nick = sender . lower ( ) , msg = message , time = time . time ( ) ) db . execute ( query ) db . commit ( ) except IntegrityError : return 'Message already stored, doing nothing.' return 'Quote added.'
adds a quote to a nick .