mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Let's make sure we use reply.
This commit is contained in:
parent
f6ae3b23a4
commit
f21d6c71b2
@ -177,6 +177,7 @@ class Note(callbacks.Privmsg):
|
|||||||
self._notify(irc, msg, repeatedly)
|
self._notify(irc, msg, repeatedly)
|
||||||
|
|
||||||
def _notify(self, irc, msg, repeatedly=False):
|
def _notify(self, irc, msg, repeatedly=False):
|
||||||
|
irc = callbacks.SimpleProxy(irc, msg)
|
||||||
try:
|
try:
|
||||||
to = ircdb.users.getUserId(msg.prefix)
|
to = ircdb.users.getUserId(msg.prefix)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@ -198,8 +199,7 @@ class Note(callbacks.Privmsg):
|
|||||||
(utils.nItems('note', unread, 'unread'), unnotified,
|
(utils.nItems('note', unread, 'unread'), unnotified,
|
||||||
utils.commaAndify(unreadIds), utils.be(unread))
|
utils.commaAndify(unreadIds), utils.be(unread))
|
||||||
# Later we'll have a user value for allowing this to be a NOTICE.
|
# Later we'll have a user value for allowing this to be a NOTICE.
|
||||||
msgmaker = ircmsgs.privmsg
|
irc.reply(s, private=True)
|
||||||
irc.queueMsg(msgmaker(msg.nick, s))
|
|
||||||
for nid in unnotifiedIds:
|
for nid in unnotifiedIds:
|
||||||
id = int(nid[1:])
|
id = int(nid[1:])
|
||||||
self.db.setNotified(id)
|
self.db.setNotified(id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user