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:
parent
bcc84b8618
commit
e63a1bc739
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user