code: def strike(channel, nick, rest):
  	"Strike last <n> statements from the record"
  	yield NoLog
  	rest = rest.strip()
  	if not rest:
  		count = 1
  	else:
  		if not rest.isdigit():
  			yield "Strike how many?  Argument must be a positive integer."
  			raise StopIteration
  		count = int(rest)
  	try:
  		struck = Logger.store.strike(channel, nick, count)
  		tmpl = (
  			"Isn't undo great?  Last %d statement%s "
  			"by %s were stricken from the record."
  		)
  		yield tmpl % (struck, 's' if struck > 1 else '', nick)
  	except Exception:
  		traceback.print_exc()
  		yield "Hmm.. I didn't find anything of yours to strike!f strike(channel, nick, rest):
  	"Strike last <n> statements from the record"
  	yield NoLog
  	rest = rest.strip()
  	if not rest:
  		count = 1
  	else:
  		if not rest.isdigit():
  			yield "Strike how many?  Argument must be a positive integer."
  			raise StopIteration
  		count = int(rest)
  	try:
  		struck = Logger.store.strike(channel, nick, count)
  		tmpl = (
  			"Isn't undo great?  Last %d statement%s "
  			"by %s were stricken from the record."
  		)
  		yield tmpl % (struck, 's' if struck > 1 else '', nick)
  	except Exception:
  		traceback.print_exc()
  		yield "Hmm.. I didn't find anything of yours to strike!"
docs: Strike last <n> statements from the record