Skip to content

Commit

Permalink
Merge pull request nandub#124 from stanaka/fix-notice-multi-lines
Browse files Browse the repository at this point in the history
Separate lines in case of notice multiple lines
  • Loading branch information
jgable committed Jun 18, 2014
2 parents bce17c1 + 860108f commit f91ae1a
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 f91ae1a

Please sign in to comment.