Changeset 85
- Timestamp:
- 07/07/07 02:48:38 (18 months ago)
- Location:
- TwitterIrcGateway
- Files:
-
- 4 modified
-
TwitterIrcGateway/App.config (modified) (1 diff)
-
TwitterIrcGateway/Settings.Designer.cs (modified) (1 diff)
-
TwitterIrcGateway/Settings.settings (modified) (1 diff)
-
TwitterIrcGatewayCLI/Program.cs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
TwitterIrcGateway/TwitterIrcGateway/App.config
r84 r85 36 36 </setting> 37 37 <setting name="IntervalDirectMessage" serializeAs="String"> 38 <value> 180</value>38 <value>360</value> 39 39 </setting> 40 40 <setting name="CookieLoginMode" serializeAs="String"> -
TwitterIrcGateway/TwitterIrcGateway/Settings.Designer.cs
r84 r85 134 134 [global::System.Configuration.UserScopedSettingAttribute()] 135 135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 136 [global::System.Configuration.DefaultSettingValueAttribute(" 180")]136 [global::System.Configuration.DefaultSettingValueAttribute("360")] 137 137 public int IntervalDirectMessage { 138 138 get { -
TwitterIrcGateway/TwitterIrcGateway/Settings.settings
r84 r85 31 31 </Setting> 32 32 <Setting Name="IntervalDirectMessage" Type="System.Int32" Scope="User"> 33 <Value Profile="(Default)"> 180</Value>33 <Value Profile="(Default)">360</Value> 34 34 </Setting> 35 35 <Setting Name="CookieLoginMode" Type="System.Boolean" Scope="User"> -
TwitterIrcGateway/TwitterIrcGatewayCLI/Program.cs
r83 r85 18 18 Boolean setTopicOnStatusChanged = false; 19 19 Boolean enableTrace = false; 20 Boolean cookieLoginMode = false; 20 21 Int32 interval = 60; 21 22 Int32 intervalDirectMessage = 180; … … 68 69 } 69 70 } 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 } 70 78 else if (arg.StartsWith("--port=")) 71 79 { … … 113 121 _server.SetTopicOnStatusChanged = setTopicOnStatusChanged; 114 122 _server.IntervalDirectMessage = intervalDirectMessage; 123 _server.CookieLoginMode = cookieLoginMode; 115 124 _server.SessionStartedRecieved += new EventHandler<SessionStartedEventArgs>(_server_SessionStartedRecieved); 116 125 … … 125 134 Console.WriteLine("[Configuration] EnableDropProtection: {0}", _server.EnableDropProtection); 126 135 Console.WriteLine("[Configuration] IntervalDirectMessage: {0}", _server.IntervalDirectMessage); 136 Console.WriteLine("[Configuration] CookieLoginMode: {0}", _server.CookieLoginMode); 127 137 128 138 _server.Start(bindAddress, port); … … 134 144 private static void ShowUsage() 135 145 { 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>]"); 137 147 } 138 148
