- disabled unstable/incomplete linkbot code.. I need to learn to stash changes proper

Sat, 30 Aug 2014 20:30:54 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sat, 30 Aug 2014 20:30:54 +0300
changeset 27
ac59b5ae7a78
parent 26
580a2a9fd2e5
child 28
30257c78904f

- disabled unstable/incomplete linkbot code.. I need to learn to stash changes proper

cobalt.py file | annotate | diff | comparison | revisions
--- 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'])

mercurial