Minecraft support: use mclib.McState instead of IrcState if needed

This commit is contained in:
Valentin Lorentz 2011-06-05 20:03:01 +02:00
parent 22da5dbec0
commit 743deff919

View File

@ -606,7 +606,10 @@ class Irc(IrcCommandDispatcher):
world.ircs.append(self)
self.network = network
self.callbacks = callbacks
self.state = IrcState()
if conf.supybot.networks.get(self.network).minecraft():
self.state = mclib.McState()
else:
self.state = IrcState()
self.queue = IrcMsgQueue()
self.fastqueue = smallqueue()
self.driver = None # The driver should set this later.