public static bool IsServerInPassiveMode(int tmCid) { var info = new TmNativeDefs.TServerInfo(); Native.TmcGetServerInfo(tmCid, ref info); return(info.Description?.Contains("passive") == true); }