|
@@ -111,6 +111,13 @@ void SshClient::write(const QString &data)
|
|
}
|
|
}
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
+static const char *umlauts[4][2] = {
|
|
|
|
+ {"ü", "u"},
|
|
|
|
+ {"ä", "a"},
|
|
|
|
+ {"ö", "o"},
|
|
|
|
+ {"ß", "ss"}
|
|
|
|
+};
|
|
|
|
+
|
|
void SshClient::parse(const QDateTime &time, const QString &command, const QString &commandData)
|
|
void SshClient::parse(const QDateTime &time, const QString &command, const QString &commandData)
|
|
{
|
|
{
|
|
/* JOINED - Another user has just joined central */
|
|
/* JOINED - Another user has just joined central */
|
|
@@ -170,8 +177,12 @@ void SshClient::parse(const QDateTime &time, const QString &command, const QStri
|
|
return;
|
|
return;
|
|
|
|
|
|
int serverCount, userCount;
|
|
int serverCount, userCount;
|
|
-
|
|
|
|
- myApp->broadcast(a.cap(3) + " " + a.cap(5) + " - " + a.cap(4) + " : " + a.cap(6), &serverCount, &userCount);
|
|
|
|
|
|
+ // Parse umlauts
|
|
|
|
+ QString msg = a.cap(6);
|
|
|
|
+ for (int i = 0; i < 4; ++i) {
|
|
|
|
+ msg.replace(umlauts[i][0], umlauts[i][1]);
|
|
|
|
+ }
|
|
|
|
+ myApp->broadcast(a.cap(3) + " " + a.cap(5) + " - " + a.cap(4) + " : " + msg, &serverCount, &userCount);
|
|
if(userCount)
|
|
if(userCount)
|
|
write("BC_RE " + a.cap(1) + " Players=" + QString::number(userCount) + ",Servers=" + QString::number(serverCount) + "\n");
|
|
write("BC_RE " + a.cap(1) + " Players=" + QString::number(userCount) + ",Servers=" + QString::number(serverCount) + "\n");
|
|
|
|
|