2003.03.27 (木) 00:39:40 <u*j*2*6*> 設定→Sharing→Minimum→共有ファイル数/サイズの下限で設定した値より少ないとふつうは検索・参照がブロックされますが、
2003.03.27 (木) 00:42:46 <u*j*2*6*> これをブロックしないようにします。
2003.03.27 (木) 00:44:16 <u*j*2*6*> サーバー満員時のキックのためだけに下限設定を使いたい、というときに便利です。
2003.03.27 (木) 00:45:37 <u*j*2*6*> このオプションが有効になっていても、Other2→検索ブロック、参照/キューブロックの機能は有効です。
2003.03.27 (木) 00:46:21 <u*j*2*6*> この機能は、設定→Other3→「共有が下限以下でも参照・検索を許す」にチェックをいれると有効になります
shuusei24154:共有が下限以下でも参照・検索を許す(idea by saint)

diff --dos -wurN 24153/constants.pas 24154/constants.pas
--- 24153/constants.pas	Wed Mar 26 15:04:58 2003
+++ 24154/constants.pas	Thu Mar 27 00:09:22 2003
@@ -27,8 +27,8 @@
  SLAVANAP_VERSION             = '2.4.1';
  SLAVANAP_BUILD               = '108';
  SLAVANAP_BUILD_DATE          = '24 January 2003';
- SLAVANAP_SHUUSEI             = '53';
- SLAVANAP_SHUUSEI_DATE        = '26 March 2003';
+ SLAVANAP_SHUUSEI             = '54';
+ SLAVANAP_SHUUSEI_DATE        = '27 March 2003';
  SLAVANAP_VERSION_SHORT       = SLAVANAP_TITLE+' '+SLAVANAP_VERSION;
  SLAVANAP_FULL                = SLAVANAP_TITLE+' '+SLAVANAP_VERSION+
                                 ' (build '+SLAVANAP_BUILD+
diff --dos -wurN 24153/english.lng 24154/english.lng
--- 24153/english.lng	Wed Mar 26 23:29:12 2003
+++ 24154/english.lng	Thu Mar 27 00:31:06 2003
@@ -7,7 +7,7 @@
 Version=2.4.1
 Comments=Original file by SlavaNap development team
 BUILD=108
-SHUUSEI=53
+SHUUSEI=54
 
 [Log]
 SERVER_INIT=Starting $1
@@ -977,6 +977,7 @@
 S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS1           =Later
 S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS2           =Shut down
 S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS3           =Minimize
+S_SHOTHER3_CB_MINSHARE_NOBLOCKACT          =Don't block browse/search if under minshare
 
 [UserMode]
 CAPTION=Console User Mode
diff --dos -wurN 24153/handler.pas 24154/handler.pas
--- 24153/handler.pas	Sat Mar 22 22:53:40 2003
+++ 24154/handler.pas	Thu Mar 27 00:27:00 2003
@@ -3181,6 +3181,8 @@
        local.Exec(MSG_SERVER_SEARCH_END,'');
        exit;
      end;
+     if not minshare_noblockact then
+     begin
      if local.shared_size<minshare_size then
      begin
        if not StrHash_FindString(db_friends,user^.username,true) then
@@ -3199,6 +3201,7 @@
         exit;
       end;
    end;
+   end;
    tmp_pos:=361;
    if not CheckParams(3)then
    begin
@@ -3897,6 +3900,7 @@
    Exec(user,MSG_SERVER_BROWSE_END,gcmd.cmd);
    exit;
   end;
+ if not minshare_noblockact then
  if user^.level=napUserUser then
  begin
   if not StrHash_FindString(db_friends,user^.username,true) then
@@ -6665,6 +6669,7 @@
    exit;
  end;
   // block browse by ppl not meeting min_share
+ if not minshare_noblockact then
  if user^.level=napUserUser then
  begin
   if not StrHash_FindString(db_friends,user^.username,true) then
diff --dos -wurN 24153/japanese.lng 24154/japanese.lng
--- 24153/japanese.lng	Wed Mar 26 23:27:34 2003
+++ 24154/japanese.lng	Thu Mar 27 00:14:50 2003
@@ -7,7 +7,7 @@
 Version=2.4.1.108
 Comments=Translated by usj12262@hotmail.com
 BUILD=108
-SHUUSEI=53
+SHUUSEI=54
 
 [Log]
 SERVER_INIT=$1を起動中…
@@ -977,6 +977,8 @@
 S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS1          =あとで決める
 S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS2          =シャットダウン
 S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS3          =最小化
+S_SHOTHER3_CB_MINSHARE_NOBLOCKACT         =共有が下限以下でも検索・参照を許す
+
 [UserMode]
 CAPTION=制御端末ユーザーの表示モード
 ERROR=エラーメッセージを表示
diff --dos -wurN 24153/lang.pas 24154/lang.pas
--- 24153/lang.pas	Wed Mar 26 22:22:32 2003
+++ 24154/lang.pas	Thu Mar 27 00:08:32 2003
@@ -1168,6 +1168,7 @@
  LNG_S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS1         = 1806;
  LNG_S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS2         = 1807;
  LNG_S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS3         = 1808;
+ LNG_S_SHOTHER3_CB_MINSHARE_NOBLOCKACT         = 1809;
  LNG_MAX                                       = 1840;//832;
 
  // strings that shouldn't be translated
@@ -2523,6 +2524,7 @@
   GetIni(ini,LNG_S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS1          ,'Settings','S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS1');
   GetIni(ini,LNG_S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS2          ,'Settings','S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS2');
   GetIni(ini,LNG_S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS3          ,'Settings','S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS3');
+  GetIni(ini,LNG_S_SHOTHER3_CB_MINSHARE_NOBLOCKACT          ,'Settings','S_SHOTHER3_CB_MINSHARE_NOBLOCKACT');
   GetIni(ini,LNG_FONT_CHARSET                               ,'Font','FONT_CHARSET');
   GetIni(ini,LNG_FONT_SIZE                                  ,'Font','FONT_SIZE');
   GetIni(ini,LNG_FONT_NAME                                  ,'Font','FONT_NAME');
diff --dos -wurN 24153/mainform.pas 24154/mainform.pas
--- 24153/mainform.pas	Wed Mar 26 10:39:18 2003
+++ 24154/mainform.pas	Thu Mar 27 00:11:10 2003
@@ -1482,6 +1482,7 @@
   restrict_hitperuser:=ini.ReadBool('Other2','RestrictHitPerUser',false);
   maxhitperuser:=ini.ReadInteger('Other2','MaxHitPerUser',0);
   Timer3.Interval:=ini.ReadInteger('Other2','ServerRefreshTime',30000);
+  minshare_noblockact:=ini.ReadBool('Other2','MinshareNoBlockAct',false);
   // set up console
   LogStartup('mainform::loadconfig: setting up console user');
   cons_channels:=TMyList.Create;
@@ -1946,6 +1947,7 @@
   ini.WriteBool('Other2','RestrictHitPerUser',restrict_hitperuser);
   ini.WriteInteger('Other2','MaxHitPerUser',maxhitperuser);
   ini.WriteInteger('Other2','ServerRefreshTime',Timer3.Interval);
+  ini.WriteBool('Other2','MinshareNoBlockAct',minshare_noblockact);
   finally
   ini.Free;
  end;
diff --dos -wurN 24153/settings.dfm 24154/settings.dfm
--- 24153/settings.dfm	Tue Mar 25 18:08:46 2003
+++ 24154/settings.dfm	Thu Mar 27 00:05:20 2003
@@ -285,7 +285,7 @@
       Top = 38
       Width = 365
       Height = 392
-      ActivePage = sh_minshare
+      ActivePage = sh_other3
       Align = alClient
       MultiLine = True
       OwnerDraw = True
@@ -6032,7 +6032,7 @@
         end
         object Label159: TLabel
           Left = 320
-          Top = 202
+          Top = 210
           Width = 24
           Height = 12
           Caption = '秒毎'
@@ -6158,7 +6158,7 @@
         end
         object cb_refresh_servers: TCheckBox
           Left = 8
-          Top = 200
+          Top = 208
           Width = 201
           Height = 17
           Caption = 'サーバーリストを定期的に更新する'
@@ -6167,7 +6167,7 @@
         end
         object edit_servreftime: TSpinEdit
           Left = 256
-          Top = 198
+          Top = 206
           Width = 57
           Height = 21
           MaxValue = 3600
@@ -6178,7 +6178,7 @@
         end
         object rd_xbutton_attr: TRadioGroup
           Left = 8
-          Top = 224
+          Top = 232
           Width = 129
           Height = 65
           Caption = '「閉じる」ボタンの動作'
@@ -6188,6 +6188,14 @@
             'シャットダウン'
             '最小化')
           TabOrder = 12
+        end
+        object cb_minshare_noblockact: TCheckBox
+          Left = 8
+          Top = 192
+          Width = 217
+          Height = 17
+          Caption = '共有が下限以下でも検索・参照を許す'
+          TabOrder = 13
         end
       end
     end
diff --dos -wurN 24153/settings.pas 24154/settings.pas
--- 24153/settings.pas	Wed Mar 26 22:23:42 2003
+++ 24154/settings.pas	Thu Mar 27 00:07:12 2003
@@ -599,6 +599,7 @@
     Label159: TLabel;
     rd_xbutton_attr: TRadioGroup;
     Label160: TLabel;
+    cb_minshare_noblockact: TCheckBox;
     procedure Panel3Resize(Sender: TObject);
     procedure headerPaint(Sender: TObject);
     procedure SetTopText(str: String);
@@ -1564,6 +1565,7 @@
    True3:    rd_xbutton_attr.ItemIndex:=1;
    False3:   rd_xbutton_attr.ItemIndex:=2;
  end;
+ cb_minshare_noblockact.Checked:=minshare_noblockact;
 end;
 
 procedure TSlavaNapSettings.sh_reportShow(Sender: TObject);
@@ -2134,6 +2136,7 @@
      1: b3_canclose:=True3;
      2: b3_canclose:=False3;
    end;
+   minshare_noblockact:=cb_minshare_noblockact.Checked;
   except
  end;
  btn_restoreClick(nil);
@@ -2983,6 +2986,7 @@
   rd_xbutton_attr.Items[0]             :=GetLangI(LNG_S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS1);
   rd_xbutton_attr.Items[1]             :=GetLangI(LNG_S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS2);
   rd_xbutton_attr.Items[2]             :=GetLangI(LNG_S_SHOTHER3_RD_XBUTTON_ATTR_ITEMS3);
+  cb_minshare_noblockact.Caption       :=GetLangI(LNG_S_SHOTHER3_CB_MINSHARE_NOBLOCKACT);
 end;
 
 end.
diff --dos -wurN 24153/vars.pas 24154/vars.pas
--- 24153/vars.pas	Fri Mar 21 17:09:20 2003
+++ 24154/vars.pas	Thu Mar 27 00:06:06 2003
@@ -335,6 +335,8 @@
  db_msgserv: TStringHash;
  restrict_hitperuser: Boolean;
  maxhitperuser: Integer;
+ minshare_noblockact: Boolean;
+
 implementation
 
 procedure CheckWindows;