Skip to content

Commit

Permalink
Merge pull request nandub#7 from DataDog/null_send
Browse files Browse the repository at this point in the history
fix for nandub#5: hard crash on sending null values
  • Loading branch information
tombell committed Dec 7, 2011
2 parents 8bc9843 + 2913a4d commit ae3e556
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Irc = require 'irc'
class IrcBot extends Adapter
send: (user, strings...) ->
for str in strings
if not str?
continue
if user.room
console.log "#{user.room} #{str}"
@bot.say(user.room, str)
Expand Down

0 comments on commit ae3e556

Please sign in to comment.