code: def start_poll(args):
      
      if args.type == 'privmsg':
          return "We don't have secret ballots in this benevolent dictatorship!"
      if not args.msg:
          return "Polls need a question."
      ctrlchan = args.config['core']['ctrlchan']
      poll = Polls(question=args.msg, submitter=args.nick)
      args.session.add(poll)
      args.session.flush()
      if args.isadmin or not args.config.getboolean('adminrestrict', 'poll'):
          poll.accepted = 1
          return "Poll #%d created!" % poll.id
      else:
          args.send("Poll submitted for approval.", target=args.nick)
          args.send("New Poll: #%d -- %s, Submitted by %s" % (poll.id, args.msg, args.nick), target=ctrlchan)
          return ""
docs: Starts a poll.