ldilley / rubircd

:speech_balloon: An IRC server written in Ruby
http://www.dilley.me/rubircd
GNU General Public License v3.0
22 stars 4 forks source link

CAP ACK and NAK are not implemented correctly #45

Closed ldilley closed 7 years ago

ldilley commented 7 years ago

Bad and good capabilities returned from CAP ACK and NAK are not using the proper syntax. The CAP subcommands require a leading space before the ':' in the cap.rb module. The problematic lines are as follows:

unless good_extensions.empty? Network.send(user, ":#{Options.server_name} CAP #{user.nick} ACK: #{good_extensions}") end unless bad_extensions.empty? Network.send(user, ":#{Options.server_name} CAP #{user.nick} NAK: #{bad_extensions}") end