From f21d6c71b215ff1231fb56f6d555da87434e6eb8 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 1 Sep 2004 10:57:17 +0000 Subject: [PATCH] Let's make sure we use reply. --- plugins/Note.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Note.py b/plugins/Note.py index 6603f6d22..9a052845b 100644 --- a/plugins/Note.py +++ b/plugins/Note.py @@ -177,6 +177,7 @@ class Note(callbacks.Privmsg): self._notify(irc, msg, repeatedly) def _notify(self, irc, msg, repeatedly=False): + irc = callbacks.SimpleProxy(irc, msg) try: to = ircdb.users.getUserId(msg.prefix) except KeyError: @@ -198,8 +199,7 @@ class Note(callbacks.Privmsg): (utils.nItems('note', unread, 'unread'), unnotified, utils.commaAndify(unreadIds), utils.be(unread)) # Later we'll have a user value for allowing this to be a NOTICE. - msgmaker = ircmsgs.privmsg - irc.queueMsg(msgmaker(msg.nick, s)) + irc.reply(s, private=True) for nid in unnotifiedIds: id = int(nid[1:]) self.db.setNotified(id)