We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce17c1 commit 860108fCopy full SHA for 860108f
src/irc.coffee
@@ -62,10 +62,12 @@ class IrcBot extends Adapter
62
# Flatten out strings from send
63
flattened = []
64
for str in strings
65
- if Array.isArray str
66
- flattened = flattened.concat str
67
- else
68
- flattened.push str
+ if typeof str != 'undefined'
+ for line in str.toString().split(/\r?\n/)
+ if Array.isArray line
+ flattened = flattened.concat line
69
+ else
70
+ flattened.push line
71
72
for str in flattened
73
if not str?
0 commit comments