 
     unless target
       return console.log "ERROR: Not sure who to send to. envelope=", envelope
-    
+
     for str in strings
       @bot.say target, str
 


    bot.addListener 'pm', (nick, message) ->
      console.log('Got private message from %s: %s', nick, message)
      
      if process.env.HUBOT_IRC_PRIVATE
        return


      throw new Error("HUBOT_IRC_ROOMS is not defined; try: export HUBOT_IRC_ROOMS='#myroom'")
    else if not process.env.HUBOT_IRC_SERVER
      throw new Error("HUBOT_IRC_SERVER is not defined: try: export HUBOT_IRC_SERVER='irc.myserver.com'")

  unfloodProtection: (unflood) ->
    if unflood? then unflood else unflood == null

  unfloodProtectionDelay: (unflood) ->
    switch @unfloodProtection(unflood)
      when true then 1000
      when false then 0
      else parseInt(unflood / 60)

  run: ->
    self = @
