Commit d91c4f8a authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

Set a nice version string for IRC

parent 095bdeed
......@@ -3,10 +3,12 @@ from collections import defaultdict
from PyIRC.extensions import bot_recommended
from PyIRC.io.asyncio import IRCProtocol
from PyIRC.signal import event
from PyIRC.util.version import versionstr
from emily import config
from emily.core import push_event
class IRCNetwork(IRCProtocol):
"""The basic IRC network representation. Each network has an instance."""
def __init__(self, *args, **kwargs):
......@@ -42,6 +44,9 @@ class IRC:
self.network_instances = {}
self.projects = defaultdict(list)
url = 'https://code.foxkit.us/wilcox-tech/emily-ng'
my_ver = 'Emily ({}) on PyIRC v{}'.format(url, versionstr)
for network in self.networks:
args = {
'serverport': (myconf[network + '_server'],
......@@ -50,6 +55,7 @@ class IRC:
'nick': myconf[network + '_nick'],
'gecos': myconf[network + '_gecos'],
'extensions': bot_recommended,
'ctcp_version': my_ver,
'join': [],
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment