Skip to content

Commit

Permalink
fix for nandub#5: hard crash on sending null values
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Singleton committed Dec 7, 2011
1 parent 8bc9843 commit 2913a4d
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 2913a4d

Please sign in to comment.