Fix topic.

This commit is contained in:
Merdal Kaymaz 2015-02-04 21:16:59 +01:00
parent 9f8a6254f9
commit 083c3e29ee
1 changed files with 2 additions and 3 deletions

View File

@ -261,9 +261,8 @@ class IRCRelayer(irc.IRCClient):
self.topic(user, channel, newTopic)
def topic(self, user, channel, newTopic):
if self.synctopic != "True":
if self.mode != "RelayByCommand":
self.relay(":%s TOPIC %s :%s" %(user, channel, newTopic))
if self.synctopic == "True":
self.relay(":%s TOPIC %s :%s" %(user, channel, newTopic))
class RelayFactory(ReconnectingClientFactory):
protocol = IRCRelayer