modinfo = {
'author': 'Erebus Team',
'license': 'public domain',
- 'compatible': [2], # compatible module API versions
+ 'compatible': [0], # compatible module API versions
'depends': [], # other modules required to work properly?
'softdeps': [], # modules which are preferred but not required
}
msg = pieces[3][1:]
mo = re_findsub.match(msg)
if mo:
- print lastline[chan]
- print mo.groupdict()
if mo.group('global') is not None:
count = 0 # unlimited
else:
count = 1 # only first
try:
newline = re.sub(mo.group('search'), mo.group('replace'), lastline[chan].msg, count)
- except Exception as e: print e; return # ignore it if it doesn't work
- print newline
+ except Exception as e: return # ignore it if it doesn't work
if newline != lastline[chan].msg:
if lastline[chan].sender == fromnick:
bot.msg(chan, "<%s> %s" % (lastline[chan].sender, newline))