mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Let's move noReply() to RichReplyMethods so that anything that subclasses
it can use noReply(). Fixes bug #1032406
This commit is contained in:
parent
243456aedd
commit
35894401c7
@ -447,6 +447,9 @@ class RichReplyMethods(object):
|
|||||||
else:
|
else:
|
||||||
self.reply(prefixer(s), **kwargs)
|
self.reply(prefixer(s), **kwargs)
|
||||||
|
|
||||||
|
def noReply(self):
|
||||||
|
self.msg.tag('repliedTo')
|
||||||
|
|
||||||
def _error(self, s, Raise=False, **kwargs):
|
def _error(self, s, Raise=False, **kwargs):
|
||||||
if Raise:
|
if Raise:
|
||||||
raise Error, s
|
raise Error, s
|
||||||
@ -841,9 +844,6 @@ class IrcObjectProxy(RichReplyMethods):
|
|||||||
else:
|
else:
|
||||||
raise ArgumentError # We shouldn't get here, but just in case.
|
raise ArgumentError # We shouldn't get here, but just in case.
|
||||||
|
|
||||||
def noReply(self):
|
|
||||||
self.msg.tag('repliedTo')
|
|
||||||
|
|
||||||
def getRealIrc(self):
|
def getRealIrc(self):
|
||||||
"""Returns the real irclib.Irc object underlying this proxy chain."""
|
"""Returns the real irclib.Irc object underlying this proxy chain."""
|
||||||
if isinstance(self.irc, irclib.Irc):
|
if isinstance(self.irc, irclib.Irc):
|
||||||
|
Loading…
Reference in New Issue
Block a user