@commands(u'endmeeting')
@example(u'.endmeeting')
def endmeeting(bot, trigger):
 if (not ismeetingrunning(trigger.sender)):
  bot.say(u"Can't do that, start meeting first")
  return
 if (not ischair(trigger.nick, trigger.sender)):
  bot.say(u'Only meeting head or chairs can do that')
  return
 meeting_length = (time.time() - meetings_dict[trigger.sender][u'start'])
 bot.say((u'\x02Meeting ended!\x0f total meeting length %d seconds' % meeting_length))
 logHTML_end(trigger.sender)
 htmllog_url = (meeting_log_baseurl + quote((((trigger.sender + u'/') + figure_logfile_name(trigger.sender)) + u'.html')))
 logplain((u'Meeting ended by %s, total meeting length %d seconds' % (trigger.nick, meeting_length)), trigger.sender)
 bot.say((u'Meeting minutes: ' + htmllog_url))
 meetings_dict[trigger.sender] = Ddict(dict)
 del meeting_actions[trigger.sender]

@ commands ( u'endmeeting' ) @ example ( u'.endmeeting' ) def endmeeting ( bot , trigger ) : if ( not ismeetingrunning ( trigger . sender ) ) : bot . say ( u"Can't do that, start meeting first" ) return if ( not ischair ( trigger . nick , trigger . sender ) ) : bot . say ( u'Only meeting head or chairs can do that' ) return meeting_length = ( time . time ( ) - meetings_dict [ trigger . sender ] [ u'start' ] ) bot . say ( ( u'\x02Meeting ended!\x0f total meeting length %d seconds' % meeting_length ) ) logHTML_end ( trigger . sender ) htmllog_url = ( meeting_log_baseurl + quote ( ( ( ( trigger . sender + u'/' ) + figure_logfile_name ( trigger . sender ) ) + u'.html' ) ) ) logplain ( ( u'Meeting ended by %s, total meeting length %d seconds' % ( trigger . nick , meeting_length ) ) , trigger . sender ) bot . say ( ( u'Meeting minutes: ' + htmllog_url ) ) meetings_dict [ trigger . sender ] = Ddict ( dict ) del meeting_actions [ trigger . sender ]
end a meeting .