mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 02:24:12 +01:00
Fix a bug in Note where Note.list --sent would list the sender's name instead
of the receivers.
This commit is contained in:
parent
5aa41afdcd
commit
4012c5b771
@ -301,10 +301,11 @@ class Note(callbacks.Privmsg):
|
||||
|
||||
def _formatNoteId(self, msg, note, sent=False):
|
||||
if note.public or not ircutils.isChannel(msg.args[0]):
|
||||
sender = ircdb.users.getUser(note.frm).name
|
||||
if sent:
|
||||
sender = ircdb.users.getUser(note.to).name
|
||||
return '#%s to %s' % (note.id, sender)
|
||||
else:
|
||||
sender = ircdb.users.getUser(note.frm).name
|
||||
return '#%s from %s' % (note.id, sender)
|
||||
else:
|
||||
return '#%s (private)' % note.id
|
||||
|
Loading…
Reference in New Issue
Block a user