3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

Irc: remove leading 'pylinkirc.protocols.' from protoname values

This commit is contained in:
James Lu 2016-07-03 00:12:23 -07:00
parent bcc84b8618
commit e63a1bc739

View File

@ -43,7 +43,7 @@ class Irc():
self.sid = self.serverdata["sid"]
self.botdata = conf['bot']
self.bot_clients = {}
self.protoname = proto.__name__
self.protoname = proto.__name__.split('.')[-1] # Remove leading pylinkirc.protocols.
self.proto = proto.Class(self)
self.pingfreq = self.serverdata.get('pingfreq') or 90
self.pingtimeout = self.pingfreq * 2