Skip to content

Commit

Permalink
separate lines in case of notice
Browse files Browse the repository at this point in the history
  • Loading branch information
stanaka committed Jun 18, 2014
1 parent bce17c1 commit 860108f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ class IrcBot extends Adapter
# Flatten out strings from send
flattened = []
for str in strings
if Array.isArray str
flattened = flattened.concat str
else
flattened.push str
if typeof str != 'undefined'
for line in str.toString().split(/\r?\n/)
if Array.isArray line
flattened = flattened.concat line
else
flattened.push line

for str in flattened
if not str?
Expand Down

0 comments on commit 860108f

Please sign in to comment.