mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 13:09:23 +01:00
utils: add error() to use classes.py's irc.error()
This commit is contained in:
parent
c450d71f84
commit
fdd4135632
8
utils.py
8
utils.py
@ -294,6 +294,14 @@ class ServiceBot():
|
||||
return
|
||||
|
||||
irc.reply(text, notice=notice, source=servuid, private=private)
|
||||
def error(self, irc, text, notice=False, private=False):
|
||||
"""Replies with an error, as the service in question."""
|
||||
servuid = self.uids.get(irc.name)
|
||||
if not servuid:
|
||||
log.warning("(%s) Possible desync? UID for service %s doesn't exist!", irc.name, self.name)
|
||||
return
|
||||
|
||||
irc.error(text, notice=notice, source=servuid, private=private)
|
||||
|
||||
def call_cmd(self, irc, source, text, called_in=None):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user