Update chatform.cpp

Improved that line of code.
Thanks to @dubslow