lib/on_irc/server.rb in on_irc-2.1.4 vs lib/on_irc/server.rb in on_irc-2.1.5

- old
+ new

@@ -13,10 +13,11 @@ def send_cmd(cmd, *args) # remove nil entries args.compact! # prepend last arg with : only if it exists. it's really ugly args[-1] = ":#{args[-1]}" if args[-1] - connection.send_data(cmd.to_s.upcase + ' ' + args.join(' ') + "\r\n") + args = args.join(' ').delete("\r\n") + connection.send_data("#{cmd.to_s.upcase} #{args}\r\n") end # basic IRC commands include Commands