This commit is contained in:
Jeremy Fincher 2003-08-29 08:16:29 +00:00
parent b2d7893959
commit f87eb2e654

View File

@ -107,7 +107,7 @@ class Topic(callbacks.Privmsg):
capability = ircdb.makeChannelCapability(channel, 'topic') capability = ircdb.makeChannelCapability(channel, 'topic')
if ircdb.checkCapability(msg.prefix, capability): if ircdb.checkCapability(msg.prefix, capability):
newtopic = irc.state.getTopic(channel) newtopic = irc.state.getTopic(channel)
while newtopic = irc.state.getTopic(channel): while newtopic == irc.state.getTopic(channel):
topics = irc.state.getTopic(channel).split(self.topicSeparator) topics = irc.state.getTopic(channel).split(self.topicSeparator)
random.shuffle(topics) random.shuffle(topics)
newtopic = self.topicSeparator.join(topics) newtopic = self.topicSeparator.join(topics)