Handle empty chat output better
If the output was empty we would end up running `''.split("\n")`, producing an empty Array. Slicing an empty Array using a range such as 1..-1 would then produce a nil value, instead of an empty Array. This in turn would cause a NoMethodError since "join" is not defined for NilClass.
Showing
Please register or sign in to comment