uofa-acm / BotPlate

A Java IRC bot template
3 stars 1 forks source link

Fix removal of space characters from trailing in max parameters case of message #14

Open mgaut72 opened 9 years ago

mgaut72 commented 9 years ago

According to the IRC Protocol there are 2 cases for message parameters.

The current implementation of Message.java removes the prefix and the command, then splits by a space character to seperate the parameters and trailing part of the message.

In the case where the separation between the parameters is implicit due to there being exactly 14 parameters, all space characters will be removed from the trailing part of the message.

First write a test case which exercises this bug, then fix it.