summaryrefslogtreecommitdiff
path: root/src/server/sv_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/sv_main.c')
-rw-r--r--src/server/sv_main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/server/sv_main.c b/src/server/sv_main.c
index e5e7e5f1..41c51508 100644
--- a/src/server/sv_main.c
+++ b/src/server/sv_main.c
@@ -752,6 +752,16 @@ static void SVC_RemoteCommand( netadr_t from, msg_t *msg ) {
Com_EndRedirect ();
}
+static void SVC_SchachtmeisterResponse( netadr_t from ) {
+ if ( !( from.type == NA_IP && from.ip[0] == 127 ) ) {
+ return;
+ }
+
+ strcpy( Cmd_Argv( 0 ), "smr" );
+
+ SV_GameCommand();
+}
+
/*
=================
SV_ConnectionlessPacket
@@ -793,6 +803,8 @@ static void SV_ConnectionlessPacket( netadr_t from, msg_t *msg ) {
// if a client starts up a local server, we may see some spurious
// server disconnect messages when their new server sees our final
// sequenced messages to the old client
+ } else if (!Q_stricmp(c, "sm2reply")) {
+ SVC_SchachtmeisterResponse( from );
} else {
Com_DPrintf ("bad connectionless packet from %s:\n%s\n",
NET_AdrToString (from), s);