+void XonoticWelcomeDialog_draw(entity me)
+{
+ SUPER(XonoticWelcomeDialog).draw(me);
+ if(me.serverinfo_MOTD == "" && gamestatus & (GAME_CONNECTED | GAME_ISSERVER))
+ {
+ // if serverinfo_MOTD is empty while connected it means we are connected to an old server
+ // in this case show the csqc welcome message and instantly close the dialog
+ localcmd("\n+show_info0; defer 2 -show_info0\n");
+ me.close(me);
+ }
+}
+