Skip to content

Commit

Permalink
Wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
quartata committed May 7, 2018
1 parent 012db51 commit cae3fae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions chatcommunicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,12 @@ def on_msg(msg, client):

if result:
_msg_queue.put((room_data, ":{} {}".format(message.id, result), None))
elif classes.feedback.FEEDBACK_REGEX.search(message.content) and is_privileged(message.owner, message.room):
if datahandling.last_feedbacked:
elif classes.feedback.FEEDBACK_REGEX.search(message.content) \
and is_privileged(message.owner, message.room) and datahandling.last_feedbacked:
ids, expires_in = datahandling.last_feedbacked

if expires_in < time.time():
Tasks.do(metasmoke.Metasmoke.post_auto_comment, message.content_source, message.owner,
ids=datahandling.last_feedbacked)
Tasks.do(metasmoke.Metasmoke.post_auto_comment, message.content_source, message.owner, ids=ids)


def tell_rooms_with(prop, msg, notify_site="", report_data=None):
Expand Down

0 comments on commit cae3fae

Please sign in to comment.