diff options
Diffstat (limited to 'warmachine/connections')
| -rw-r--r-- | warmachine/connections/base.py | 3 | ||||
| -rw-r--r-- | warmachine/connections/irc.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/warmachine/connections/base.py b/warmachine/connections/base.py index e787e35..56ce108 100644 --- a/warmachine/connections/base.py +++ b/warmachine/connections/base.py | |||
| @@ -3,6 +3,9 @@ CONNECTED = 'Connected' | |||
| 3 | 3 | ||
| 4 | 4 | ||
| 5 | class Connection(object): | 5 | class Connection(object): |
| 6 | def __init__(self): | ||
| 7 | self.config_dir = None | ||
| 8 | |||
| 6 | def connect(self, *args, **kwargs): | 9 | def connect(self, *args, **kwargs): |
| 7 | """ | 10 | """ |
| 8 | This is called by the main start method. It should prepare your | 11 | This is called by the main start method. It should prepare your |
diff --git a/warmachine/connections/irc.py b/warmachine/connections/irc.py index 86068d7..542ba62 100644 --- a/warmachine/connections/irc.py +++ b/warmachine/connections/irc.py | |||
| @@ -7,6 +7,7 @@ from ..utils.decorators import memoize | |||
| 7 | 7 | ||
| 8 | class AioIRC(Connection): | 8 | class AioIRC(Connection): |
| 9 | def __init__(self, host, port): | 9 | def __init__(self, host, port): |
| 10 | super().__init__() | ||
| 10 | self._loop = asyncio.get_event_loop() | 11 | self._loop = asyncio.get_event_loop() |
| 11 | self.log = logging.getLogger(self.__class__.__name__) | 12 | self.log = logging.getLogger(self.__class__.__name__) |
| 12 | 13 | ||