@commands(u'agreed')
@example(u'.agreed Bowties are cool')
def meetingagreed(bot, trigger):
 if (not ismeetingrunning(trigger.sender)):
  bot.say(u"Can't do that, start meeting first")
  return
 if (not trigger.group(2)):
  bot.say(u'try .action someone will do something')
  return
 if (not ischair(trigger.nick, trigger.sender)):
  bot.say(u'Only meeting head or chairs can do that')
  return
 logplain((u'AGREED: ' + trigger.group(2)), trigger.sender)
 logHTML_listitem((u'<span style="font-weight: bold">Agreed: </span>' + trigger.group(2)), trigger.sender)
 bot.say((u'\x02AGREED\x0f: ' + trigger.group(2)))

@ commands ( u'agreed' ) @ example ( u'.agreed Bowties are cool' ) def meetingagreed ( bot , trigger ) : if ( not ismeetingrunning ( trigger . sender ) ) : bot . say ( u"Can't do that, start meeting first" ) return if ( not trigger . group ( 2 ) ) : bot . say ( u'try .action someone will do something' ) return if ( not ischair ( trigger . nick , trigger . sender ) ) : bot . say ( u'Only meeting head or chairs can do that' ) return logplain ( ( u'AGREED: ' + trigger . group ( 2 ) ) , trigger . sender ) logHTML_listitem ( ( u'<span style="font-weight: bold">Agreed: </span>' + trigger . group ( 2 ) ) , trigger . sender ) bot . say ( ( u'\x02AGREED\x0f: ' + trigger . group ( 2 ) ) )
log an agreement in the meeting log .