Skip to content

Commit ae3e556

Browse files
committed
Merge pull request nandub#7 from DataDog/null_send
fix for nandub#5: hard crash on sending null values
2 parents 8bc9843 + 2913a4d commit ae3e556

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/irc.coffee

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Irc = require 'irc'
66
class IrcBot extends Adapter
77
send: (user, strings...) ->
88
for str in strings
9+
if not str?
10+
continue
911
if user.room
1012
console.log "#{user.room} #{str}"
1113
@bot.say(user.room, str)

0 commit comments

Comments
 (0)