Merge pull request #4 from AttorneyOnline/fix-showname
fix showname being set to " " when it shouldn't
This commit is contained in:
commit
10745f110f
@ -511,7 +511,8 @@ AOPacket AOClient::validateIcPacket(AOPacket packet)
|
|||||||
if (incoming_args.length() > 15) {
|
if (incoming_args.length() > 15) {
|
||||||
// showname
|
// showname
|
||||||
QString incoming_showname = dezalgo(incoming_args[15].toString().trimmed());
|
QString incoming_showname = dezalgo(incoming_args[15].toString().trimmed());
|
||||||
if (incoming_showname.length() == 0)
|
// if the raw input is not empty but the trimmed input is, use a single space
|
||||||
|
if (incoming_showname.isEmpty() && !incoming_args[15].toString().isEmpty())
|
||||||
incoming_showname = " ";
|
incoming_showname = " ";
|
||||||
args.append(incoming_showname);
|
args.append(incoming_showname);
|
||||||
showname = incoming_showname;
|
showname = incoming_showname;
|
||||||
|
Loading…
Reference in New Issue
Block a user