# HG changeset patch # User Teemu Piippo # Date 1409419854 -10800 # Node ID ac59b5ae7a78d2945cd140b56427f6bfb193af59 # Parent 580a2a9fd2e5487acf6b566e9e2cd47e7c43341f - disabled unstable/incomplete linkbot code.. I need to learn to stash changes proper diff -r 580a2a9fd2e5 -r ac59b5ae7a78 cobalt.py --- a/cobalt.py Sat Aug 30 20:22:16 2014 +0300 +++ b/cobalt.py Sat Aug 30 20:30:54 2014 +0300 @@ -228,7 +228,7 @@ if not 'logchannel' in channel: channel['logchannel'] = False channel['namesdone'] = True - channel['haslinkbot'] = False + #channel['haslinkbot'] = False if not 'conflictsuffix' in self.cfg: self.cfg['conflictsuffix'] = '`' @@ -308,8 +308,8 @@ rex = re.compile (r'^:([^!]+)!([^@]+)@([^ ]+) JOIN :#(.+)') match = rex.match (line) - if match and match.group(1).toLower() == 'linkbot': - channel_by_name (match.group(4))['haslinkbot'] = True + #if match and match.group(1).toLower() == 'linkbot': + #channel_by_name (match.group(4))['haslinkbot'] = True elif words[1] == 'QUIT': rex = re.compile (r'^:([^!]+)!([^@]+)@([^ ]+) QUIT') match = rex.match (line) @@ -319,9 +319,9 @@ self.mynick = self.desired_name self.write ("NICK %s" % self.mynick) - if match and match.group(1).toLower() == 'linkbot': - for channel in self.channels: - channels['haslinkbot'] = False + #if match and match.group(1).toLower() == 'linkbot': + #for channel in self.channels: + #channels['haslinkbot'] = False elif words[1] == "433": #:irc.localhost 433 * cobalt :Nickname is already in use. self.mynick = '%s%s' % (self.mynick, self.cfg['conflictsuffix'])