mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 21:22:39 +01:00
Owner: make irc.state.history network specific
It is fairly counterintuitive for plugins to read the IrcState history, only to find that the message it got is from the wrong network. I'm not sure why the original Supybot chose to link all the history buffers together, as those lines came from before Supybot was introduced to Git. Closes #1211.
This commit is contained in:
parent
d73de5e512
commit
03c4529d9e
@ -160,9 +160,6 @@ class Owner(callbacks.Plugin):
|
||||
'No servers are set for the %s network.' % network
|
||||
self.log.debug('Creating new Irc for %s.', network)
|
||||
newIrc = irclib.Irc(network)
|
||||
for irc in world.ircs:
|
||||
if irc != newIrc:
|
||||
newIrc.state.history = irc.state.history
|
||||
driver = drivers.newDriver(newIrc)
|
||||
self._loadPlugins(newIrc)
|
||||
return newIrc
|
||||
|
Loading…
Reference in New Issue
Block a user