--- a/QTfrontend/newnetclient.cpp Mon Nov 24 21:47:59 2008 +0000
+++ b/QTfrontend/newnetclient.cpp Tue Nov 25 15:43:10 2008 +0000
@@ -334,7 +334,10 @@
return;
}
emit nickRemoved(lst[1]);
- emit chatStringFromNet(QString(tr("*** %1 left")).arg(lst[1]));
+ if (lst.size() < 3)
+ emit chatStringFromNet(QString(tr("*** %1 left")).arg(lst[1]));
+ else
+ emit chatStringFromNet(QString(tr("*** %1 left (%2)")).arg(lst[1], lst[2]));
return;
}
@@ -439,6 +442,16 @@
return;
}
+ if (lst[0] == "BYE") {
+ if (lst.size() < 2)
+ {
+ qWarning("Net: Bad BYE message");
+ return;
+ }
+ emit showMessage(HWNewNet::tr("Quit reason: ") + lst[1]);
+ return;
+ }
+
qWarning() << "Net: Unknown message:" << lst;
}