@commands(u'subject')
@example(u'.subject roll call')
def meetingsubject(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'what is the subject?')
  return
 if (not ischair(trigger.nick, trigger.sender)):
  bot.say(u'Only meeting head or chairs can do that')
  return
 meetings_dict[trigger.sender][u'current_subject'] = trigger.group(2)
 logfile = codecs.open(((((meeting_log_path + trigger.sender) + u'/') + figure_logfile_name(trigger.sender)) + u'.html'), u'a', encoding=u'utf-8')
 logfile.write(((u'</ul><h3>' + trigger.group(2)) + u'</h3><ul>'))
 logfile.close()
 logplain(((((u'Current subject: ' + trigger.group(2)) + u', (set by ') + trigger.nick) + u')'), trigger.sender)
 bot.say((u'\x02Current subject\x0f: ' + trigger.group(2)))

@ commands ( u'subject' ) @ example ( u'.subject roll call' ) def meetingsubject ( 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'what is the subject?' ) return if ( not ischair ( trigger . nick , trigger . sender ) ) : bot . say ( u'Only meeting head or chairs can do that' ) return meetings_dict [ trigger . sender ] [ u'current_subject' ] = trigger . group ( 2 ) logfile = codecs . open ( ( ( ( ( meeting_log_path + trigger . sender ) + u'/' ) + figure_logfile_name ( trigger . sender ) ) + u'.html' ) , u'a' , encoding = u'utf-8' ) logfile . write ( ( ( u'</ul><h3>' + trigger . group ( 2 ) ) + u'</h3><ul>' ) ) logfile . close ( ) logplain ( ( ( ( ( u'Current subject: ' + trigger . group ( 2 ) ) + u', (set by ' ) + trigger . nick ) + u')' ) , trigger . sender ) bot . say ( ( u'\x02Current subject\x0f: ' + trigger . group ( 2 ) ) )
change the meeting subject .