Fix synctopic to topicsync.

This commit is contained in:
Merdal Kaymaz 2015-02-04 21:20:02 +01:00
parent 083c3e29ee
commit 2dc9e978ea
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ username=unit22
realname=Bender Bending Rodríguez
heartbeat=90
nickcolor=True
synctopic=True
topicsync=True
[Freenode]
host=irc.freenode.net

View File

@ -38,7 +38,7 @@ def main():
return None
options = {}
for option in [ "timeout", "host", "port", "nick", "channel", "heartbeat", "password", "username", "realname", "mode", "ssl", "fingerprint", "nickcolor", "synctopic" ]:
for option in [ "timeout", "host", "port", "nick", "channel", "heartbeat", "password", "username", "realname", "mode", "ssl", "fingerprint", "nickcolor", "topicsync" ]:
options[option] = get(option)
mode = get("mode")
@ -208,7 +208,7 @@ class IRCRelayer(irc.IRCClient):
self.realname = config['realname']
self.mode = config['mode']
self.nickcolor = config['nickcolor']
self.synctopic = config['synctopic']
self.topicsync = config['topicsync']
log.msg("IRC Relay created. Name: %s | Host: %s | Channel: %s"%(self.nickname, self.network, self.channel))
# IRC RFC: https://tools.ietf.org/html/rfc2812#page-4
if len(self.nickname) > 9:
@ -261,7 +261,7 @@ class IRCRelayer(irc.IRCClient):
self.topic(user, channel, newTopic)
def topic(self, user, channel, newTopic):
if self.synctopic == "True":
if self.topicsync == "True":
self.relay(":%s TOPIC %s :%s" %(user, channel, newTopic))
class RelayFactory(ReconnectingClientFactory):