'self.events' -> 'self._events' in IRCBot

This commit is contained in:
jesopo 2018-11-05 12:29:13 +00:00
parent c3f654673a
commit 86bbd370fb

View file

@ -27,7 +27,7 @@ class Bot(object):
self.add_socket(Socket.Socket(self._trigger_server, lambda _, s: None)) self.add_socket(Socket.Socket(self._trigger_server, lambda _, s: None))
self._trigger_functions = [] self._trigger_functions = []
self.events.hook("timer.reconnect", self._timed_reconnect) self._events.hook("timer.reconnect", self._timed_reconnect)
def trigger(self, func: typing.Callable[[], typing.Any]=None): def trigger(self, func: typing.Callable[[], typing.Any]=None):
self.lock.acquire() self.lock.acquire()