From 03c4529d9e3f6ce13c288fa1aa4bfb933288f27d Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 3 Aug 2017 12:25:34 -0700 Subject: [PATCH] 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. --- plugins/Owner/plugin.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/Owner/plugin.py b/plugins/Owner/plugin.py index fa576315d..068f0026f 100644 --- a/plugins/Owner/plugin.py +++ b/plugins/Owner/plugin.py @@ -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