Correctly set message text

There might be multiple parts to each message, e.g. if a plugin colourises
some parts of a message.
Merge pull request #161 from lorenzhs/fixmessagetext

Correctly set message text