Permalink
Browse files

fix for nandub#5: hard crash on sending null values

  • Loading branch information...
Matt Singleton
Matt Singleton committed Dec 7, 2011
1 parent 8bc9843 commit 2913a4d655f1172aed1ea2f58ad70f7adede8c2c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/irc.coffee
View
@@ -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)

0 comments on commit 2913a4d

Please sign in to comment.