started removing bullshit magic
This commit is contained in:
parent
c6fd9e1f55
commit
7e4ea3a9ff
6 changed files with 44 additions and 59 deletions
|
@ -3,7 +3,7 @@ import logging
|
|||
import re
|
||||
import os
|
||||
|
||||
from core import config, irc
|
||||
from core import config, irc, loader
|
||||
|
||||
|
||||
def clean_name(n):
|
||||
|
@ -25,6 +25,11 @@ class Bot(object):
|
|||
self.connections = {}
|
||||
self.connect()
|
||||
|
||||
# run plugin loader
|
||||
self.logger.debug("Bootstrapping reloader.")
|
||||
loader.reload(self, init=True)
|
||||
|
||||
|
||||
def connect(self):
|
||||
"""connect to all the networks defined in the bot config"""
|
||||
for conf in self.config['connections']:
|
||||
|
|
Reference in a new issue