mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Change notification to only-notify-of-unnotified-messages.
This commit is contained in:
parent
3f764eab0f
commit
0cc386e7f7
@ -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..' % \
|
||||||
|
Loading…
Reference in New Issue
Block a user