mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 05:02:33 +01:00
classes: introduce irc.reply()
This commit is contained in:
parent
d14cf3c7cf
commit
e942b411f1
@ -206,6 +206,10 @@ class Irc():
|
|||||||
cmd = 'PYLINK_SELF_PRIVMSG'
|
cmd = 'PYLINK_SELF_PRIVMSG'
|
||||||
self.callHooks([source, cmd, {'target': target, 'text': text}])
|
self.callHooks([source, cmd, {'target': target, 'text': text}])
|
||||||
|
|
||||||
|
def reply(self, text, notice=False, source=None):
|
||||||
|
"""Replies to the last caller in context."""
|
||||||
|
self.msg(self.called_by, text, notice=notice, source=source)
|
||||||
|
|
||||||
def _disconnect(self):
|
def _disconnect(self):
|
||||||
log.debug('(%s) Canceling pingTimer at %s due to _disconnect() call', self.name, time.time())
|
log.debug('(%s) Canceling pingTimer at %s due to _disconnect() call', self.name, time.time())
|
||||||
self.connected.clear()
|
self.connected.clear()
|
||||||
|
Loading…
Reference in New Issue
Block a user