When a chat message contains"/w", do not discard the beginning of the message
I didn't mark this as a bug, but maybe the behavior isn't intended.
When sending a chat message like this:
ChatSender.getGrafs() recognizes the "/w" and turns the message into
When checking for other commands in the message, the code uses startsWith(), but in the case of PRIVATE_MESSAGE_PATTERN, it will match even if the "/w" is in the middle of the message.
I guess a "start of line" could be added to PRIVATE_MESSAGE_PATTERN, or line 248 of ChatSender.java could be changed to
I didn't mark this as a bug, but maybe the behavior isn't intended.
When sending a chat message like this:
Code:
test /w faxbot test
Code:
/w faxbot test
When checking for other commands in the message, the code uses startsWith(), but in the case of PRIVATE_MESSAGE_PATTERN, it will match even if the "/w" is in the middle of the message.
I guess a "start of line" could be added to PRIVATE_MESSAGE_PATTERN, or line 248 of ChatSender.java could be changed to
Code:
if ( message.startsWith( "/w " ) && privateMessageMatcher.find() )