3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01:00

classes: pass force_privmsg_in_private and private booleans to irc.reply() in irc.error()

This commit is contained in:
Ken Spencer 2016-11-19 01:46:08 -05:00 committed by James Lu
parent a1bbb4fdb9
commit 02dfe5aeab

View File

@ -539,7 +539,8 @@ class Irc():
loopback=True):
"""Replies with an error to the last caller in the right context (channel or PM)."""
# This is a stub to alias error to reply
self.reply("Error: %s" % text, notice=notice, source=source, loopback=loopback)
self.reply("Error: %s" % text, notice=notice, source=source, private=private,
force_privmsg_in_private=force_privmsg_in_private, loopback=loopback)
def toLower(self, text):
"""Returns a lowercase representation of text based on the IRC object's