@@ -161,8 +161,15 @@ void session::process_lines(void) {
line = line.substr(server_sent);
server_sent = 0;
};
+
// display on?
to_client(line);
+ // our first injection
+ if (line.find("TradeWars Game Server") != std::string::npos) {
+ to_client("\rTradeWars Proxy v2++ READY (~ to activate)\n\r");
+ }
replace(part, "\r", "");
dispatch_line(part);
}