Skip to content

Commit

Permalink
interboard -- spam save fix
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anon committed Aug 1, 2012
1 parent b275fe7 commit 0e888a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions interboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,8 @@ def trim_activity():
sql = table.delete().where(table.c.timestamp <= mintime)
session.execute(sql)

def update_spam_file(admin, spam):
user = staff.check_password(admin)
if user.account == staff.MODERATOR:
def update_spam_file(task_data, spam):
if task_data.user.account == staff.MODERATOR:
raise WakaError(strings.INUSUFFICENTPRIVLEDGES)

# Dump all contents to first spam file.
Expand Down

0 comments on commit 0e888a3

Please sign in to comment.