@rule(u'.*')
@priority(u'low')
def collectlines(bot, trigger):
 if trigger.is_privmsg:
  return
 if (trigger.sender not in bot.memory[u'find_lines']):
  bot.memory[u'find_lines'][trigger.sender] = SopelMemory()
 if (Identifier(trigger.nick) not in bot.memory[u'find_lines'][trigger.sender]):
  bot.memory[u'find_lines'][trigger.sender][Identifier(trigger.nick)] = list()
 templist = bot.memory[u'find_lines'][trigger.sender][Identifier(trigger.nick)]
 line = trigger.group()
 if line.startswith(u's/'):
  return
 elif line.startswith(u'\x01ACTION'):
  line = line[:(-1)]
  templist.append(line)
 else:
  templist.append(line)
 del templist[:(-10)]
 bot.memory[u'find_lines'][trigger.sender][Identifier(trigger.nick)] = templist

@ rule ( u'.*' ) @ priority ( u'low' ) def collectlines ( bot , trigger ) : if trigger . is_privmsg : return if ( trigger . sender not in bot . memory [ u'find_lines' ] ) : bot . memory [ u'find_lines' ] [ trigger . sender ] = SopelMemory ( ) if ( Identifier ( trigger . nick ) not in bot . memory [ u'find_lines' ] [ trigger . sender ] ) : bot . memory [ u'find_lines' ] [ trigger . sender ] [ Identifier ( trigger . nick ) ] = list ( ) templist = bot . memory [ u'find_lines' ] [ trigger . sender ] [ Identifier ( trigger . nick ) ] line = trigger . group ( ) if line . startswith ( u's/' ) : return elif line . startswith ( u'\x01ACTION' ) : line = line [ : ( - 1 ) ] templist . append ( line ) else : templist . append ( line ) del templist [ : ( - 10 ) ] bot . memory [ u'find_lines' ] [ trigger . sender ] [ Identifier ( trigger . nick ) ] = templist
create a temporary log of what people say .