mirror of https://github.com/str4d/RelayBot.git
Fix topic.
This commit is contained in:
parent
9f8a6254f9
commit
083c3e29ee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue