From 0a2957dda15b7576d3399c91a6f177c1fa61847b Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 20 Sep 2010 19:53:49 +0100 Subject: [PATCH] fix insanely stupid mistake --- SparkleLib/SparkleRepo.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SparkleLib/SparkleRepo.cs b/SparkleLib/SparkleRepo.cs index 01a747df..bcde2e02 100644 --- a/SparkleLib/SparkleRepo.cs +++ b/SparkleLib/SparkleRepo.cs @@ -245,6 +245,9 @@ namespace SparkleLib { public SparkleRepo (string path) { + LocalPath = path; + Name = Path.GetFileName (LocalPath); + Process = new Process () { EnableRaisingEvents = true }; @@ -254,8 +257,6 @@ namespace SparkleLib { Process.StartInfo.UseShellExecute = false; Process.StartInfo.WorkingDirectory = LocalPath; - LocalPath = path; - Name = Path.GetFileName (LocalPath); RemoteName = Path.GetFileNameWithoutExtension (RemoteOriginUrl); RemoteOriginUrl = GetRemoteOriginUrl (); Domain = GetDomain (RemoteOriginUrl); @@ -328,13 +329,12 @@ namespace SparkleLib { }; - // TODO: Change to OnTopicChange. The topic will contain the latest hash // Fetch changes when there is a message in the irc channel - Listener.Client.OnChannelMessage += delegate (object o, IrcEventArgs args) { // TODO: TopicChangeEventArgs + Listener.Client.OnChannelMessage += delegate (object o, IrcEventArgs args) { SparkleHelpers.DebugInfo ("Irc", "[" + Name + "] Was notified of a remote change."); - if (!args.Data.Message.Equals (_CurrentHash)) { //TODO: args.Data.NewTopic + if (!args.Data.Message.Equals (_CurrentHash)) { FetchRequests++;