Changeset 85

Show
Ignore:
Timestamp:
07/07/07 02:48:38 (18 months ago)
Author:
mayuki
Message:
 
Location:
TwitterIrcGateway
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • TwitterIrcGateway/TwitterIrcGateway/App.config

    r84 r85  
    3636            </setting> 
    3737            <setting name="IntervalDirectMessage" serializeAs="String"> 
    38                 <value>180</value> 
     38                <value>360</value> 
    3939            </setting> 
    4040            <setting name="CookieLoginMode" serializeAs="String"> 
  • TwitterIrcGateway/TwitterIrcGateway/Settings.Designer.cs

    r84 r85  
    134134        [global::System.Configuration.UserScopedSettingAttribute()] 
    135135        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 
    136         [global::System.Configuration.DefaultSettingValueAttribute("180")] 
     136        [global::System.Configuration.DefaultSettingValueAttribute("360")] 
    137137        public int IntervalDirectMessage { 
    138138            get { 
  • TwitterIrcGateway/TwitterIrcGateway/Settings.settings

    r84 r85  
    3131    </Setting> 
    3232    <Setting Name="IntervalDirectMessage" Type="System.Int32" Scope="User"> 
    33       <Value Profile="(Default)">180</Value> 
     33      <Value Profile="(Default)">360</Value> 
    3434    </Setting> 
    3535    <Setting Name="CookieLoginMode" Type="System.Boolean" Scope="User"> 
  • TwitterIrcGateway/TwitterIrcGatewayCLI/Program.cs

    r83 r85  
    1818            Boolean setTopicOnStatusChanged = false; 
    1919            Boolean enableTrace = false; 
     20            Boolean cookieLoginMode = false; 
    2021            Int32 interval = 60; 
    2122            Int32 intervalDirectMessage = 180; 
     
    6869                    } 
    6970                } 
     71                else if (arg.StartsWith("--cookie-login-mode=")) 
     72                { 
     73                    if (!Boolean.TryParse(arg.Substring("--cookie-login-mode=".Length), out cookieLoginMode)) 
     74                    { 
     75                        cookieLoginMode = false; 
     76                    } 
     77                } 
    7078                else if (arg.StartsWith("--port=")) 
    7179                { 
     
    113121            _server.SetTopicOnStatusChanged = setTopicOnStatusChanged; 
    114122            _server.IntervalDirectMessage = intervalDirectMessage; 
     123            _server.CookieLoginMode = cookieLoginMode; 
    115124            _server.SessionStartedRecieved += new EventHandler<SessionStartedEventArgs>(_server_SessionStartedRecieved); 
    116125 
     
    125134            Console.WriteLine("[Configuration] EnableDropProtection: {0}", _server.EnableDropProtection); 
    126135            Console.WriteLine("[Configuration] IntervalDirectMessage: {0}", _server.IntervalDirectMessage); 
     136            Console.WriteLine("[Configuration] CookieLoginMode: {0}", _server.CookieLoginMode); 
    127137 
    128138            _server.Start(bindAddress, port); 
     
    134144        private static void ShowUsage()  
    135145        { 
    136             Console.WriteLine(@"usage: TwitterIrcGateway [--port=<port>] [--bind-address=<bindaddr>] [--interval=<sec>] [--resolve-tinyurl=<true|false>] [--encoding=<encoding-name>] [--ignore-watch-error=<true|false>] [--enable-drop-protection=<true|false>] [--set-topic-onstatuschanged=<true|false>] [--enable-trace=<true|false>] [--interval-directmessage=<sec>]"); 
     146            Console.WriteLine(@"usage: TwitterIrcGateway [--port=<port>] [--bind-address=<bindaddr>] [--interval=<sec>] [--resolve-tinyurl=<true|false>] [--encoding=<encoding-name>] [--ignore-watch-error=<true|false>] [--enable-drop-protection=<true|false>] [--set-topic-onstatuschanged=<true|false>] [--enable-trace=<true|false>] [--interval-directmessage=<sec>] [--cookie-login-mode=<true|false>]"); 
    137147        } 
    138148