Change notification to only-notify-of-unnotified-messages.

This commit is contained in:
Jeremy Fincher 2003-04-23 22:32:55 +00:00
parent 3f764eab0f
commit 0cc386e7f7

View File

@ -131,7 +131,7 @@ class Notes(callbacks.Privmsg):
notes.to_id=users.id AND notes.to_id=users.id AND
notified=0""", name) notified=0""", name)
unnotified = int(cursor.fetchone()[0]) unnotified = int(cursor.fetchone()[0])
if unread + unnotified == 0: if unnotified != 0:
return return
s = 'You have %s unread note%s ' \ s = 'You have %s unread note%s ' \
'%s that I haven\'t told you about before now..' % \ '%s that I haven\'t told you about before now..' % \