Changeset 56
- Timestamp:
- 04/19/07 04:36:38 (21 months ago)
- Location:
- TwitterIrcGateway
- Files:
-
- 8 modified
-
TwitterIrcGateway/App.config (modified) (1 diff)
-
TwitterIrcGateway/Program.cs (modified) (1 diff)
-
TwitterIrcGateway/Settings.Designer.cs (modified) (1 diff)
-
TwitterIrcGateway/Settings.settings (modified) (1 diff)
-
TwitterIrcGateway/TwitterIrcGateway.csproj (modified) (1 diff)
-
TwitterIrcGatewayCLI/Program.cs (modified) (4 diffs)
-
TwitterIrcGatewayCore/Server.cs (modified) (1 diff)
-
TwitterIrcGatewayCore/Session.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
TwitterIrcGateway/TwitterIrcGateway/App.config
r40 r56 29 29 <value>True</value> 30 30 </setting> 31 <setting name="SetTopicOnStatusChanged" serializeAs="String"> 32 <value>False</value> 33 </setting> 31 34 </Misuzilla.Applications.TwitterIrcGateway.Settings> 32 35 </userSettings> -
TwitterIrcGateway/TwitterIrcGateway/Program.cs
r48 r56 51 51 _server.ResolveTinyUrl = _settings.ResolveTinyUrl; 52 52 _server.EnableDropProtection = _settings.EnableDropProtection; 53 _server.SetTopicOnStatusChanged = _settings.SetTopicOnStatusChanged; 53 54 _server.SessionStartedRecieved += new EventHandler<SessionStartedEventArgs>(_server_SessionStartedRecieved); 54 55 try -
TwitterIrcGateway/TwitterIrcGateway/Settings.Designer.cs
r40 r56 107 107 } 108 108 } 109 110 [global::System.Configuration.UserScopedSettingAttribute()] 111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 112 [global::System.Configuration.DefaultSettingValueAttribute("False")] 113 public bool SetTopicOnStatusChanged { 114 get { 115 return ((bool)(this["SetTopicOnStatusChanged"])); 116 } 117 set { 118 this["SetTopicOnStatusChanged"] = value; 119 } 120 } 109 121 } 110 122 } -
TwitterIrcGateway/TwitterIrcGateway/Settings.settings
r40 r56 24 24 <Value Profile="(Default)">True</Value> 25 25 </Setting> 26 <Setting Name="SetTopicOnStatusChanged" Type="System.Boolean" Scope="User"> 27 <Value Profile="(Default)">False</Value> 28 </Setting> 26 29 </Settings> 27 30 </SettingsFile> -
TwitterIrcGateway/TwitterIrcGateway/TwitterIrcGateway.csproj
r53 r56 32 32 <ExcludedPermissions> 33 33 </ExcludedPermissions> 34 <ApplicationIcon> 35 </ApplicationIcon> 34 <ApplicationIcon>Resources\ApplicationIcon.ico</ApplicationIcon> 36 35 </PropertyGroup> 37 36 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> -
TwitterIrcGateway/TwitterIrcGatewayCLI/Program.cs
r53 r56 16 16 Boolean enableDropProtection = true; 17 17 Boolean ignoreWatchError = false; 18 Boolean setTopicOnStatusChanged = false; 18 19 Int32 interval = 60; 19 20 Int32 port = 16668; … … 49 50 { 50 51 resolveTinyUrl = true; 52 } 53 } 54 else if (arg.StartsWith("--set-topic-onstatuschanged=")) 55 { 56 if (!Boolean.TryParse(arg.Substring("--set-topic-onstatuschanged=".Length), out resolveTinyUrl)) 57 { 58 setTopicOnStatusChanged = false; 51 59 } 52 60 } … … 86 94 _server.EnableDropProtection = enableDropProtection; 87 95 _server.Encoding = encoding; 96 _server.SetTopicOnStatusChanged = setTopicOnStatusChanged; 88 97 _server.SessionStartedRecieved += new EventHandler<SessionStartedEventArgs>(_server_SessionStartedRecieved); 89 98 … … 94 103 Console.WriteLine("[Configuration] ResolveTinyUrl: {0}", _server.ResolveTinyUrl); 95 104 Console.WriteLine("[Configuration] Encoding: {0}", _server.Encoding.EncodingName); 105 Console.WriteLine("[Configuration] SetTopicOnStatusChanged: {0}", _server.SetTopicOnStatusChanged); 96 106 Console.WriteLine("[Configuration] EnableDropProtection: {0}", _server.EnableDropProtection); 97 107 -
TwitterIrcGateway/TwitterIrcGatewayCore/Server.cs
r50 r56 33 33 /// </summary> 34 34 public Boolean EnableDropProtection = true; 35 36 /// <summary> 37 /// �X�e�[�^�X��V�����Ƃ��Ƀg�s�b�N��X���邩�ǂ��� 38 /// </summary> 39 public Boolean SetTopicOnStatusChanged = false; 35 40 36 41 public const String ServerName = "localhost"; -
TwitterIrcGateway/TwitterIrcGatewayCore/Session.cs
r55 r56 459 459 _twitter.UpdateStatus(message.Content); 460 460 _lastStatusFromGateway = message.Content; 461 462 // topic �ɂ��� if (_server.SetTopicOnStatusChanged) 463 { 464 TopicMessage topicMsg = new TopicMessage(Server.ChannelName, message.Content); 465 topicMsg.Sender = _clientHost; 466 Send(topicMsg); 467 } 461 468 } 462 469 else … … 572 579 void SendServerMessage(IRCMessage msg) 573 580 { 574 msg.Sender = Server.ServerName; 581 msg.SenderNick = Server.ServerNick; 582 msg.SenderHost = Server.ServerName; 575 583 Send(msg); 576 584 }
