[repo][listener] look for changes on startup
This commit is contained in:
parent
ef40cdd8fe
commit
080e3544ed
|
@ -39,6 +39,9 @@ namespace SparkleLib {
|
||||||
Nick = nick.Replace ("@", "_at_").Replace (".", "_dot_");
|
Nick = nick.Replace ("@", "_at_").Replace (".", "_dot_");
|
||||||
Port = 6667;
|
Port = 6667;
|
||||||
|
|
||||||
|
if (Nick.Length > 9)
|
||||||
|
Nick = Nick.Substring (0, 9);
|
||||||
|
|
||||||
// TODO: Remove these hardcoded values
|
// TODO: Remove these hardcoded values
|
||||||
Channel = "#sparkletest";
|
Channel = "#sparkletest";
|
||||||
Server = "irc.gnome.org";
|
Server = "irc.gnome.org";
|
||||||
|
@ -58,18 +61,22 @@ namespace SparkleLib {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// Connect to the server
|
|
||||||
Client.Connect (new string [] {Server}, Port);
|
|
||||||
|
|
||||||
// Login to the server
|
|
||||||
Client.Login (Nick, Nick);
|
|
||||||
|
|
||||||
// Join the channel
|
|
||||||
Client.RfcJoin (Channel);
|
|
||||||
|
|
||||||
Thread thread = new Thread (
|
Thread thread = new Thread (
|
||||||
new ThreadStart (delegate {
|
new ThreadStart (delegate {
|
||||||
|
|
||||||
|
// Connect to the server
|
||||||
|
Client.Connect (new string [] {Server}, Port);
|
||||||
|
|
||||||
|
// Login to the server
|
||||||
|
Client.Login (Nick, Nick);
|
||||||
|
|
||||||
|
// Join the channel
|
||||||
|
Client.RfcJoin (Channel);
|
||||||
|
|
||||||
Client.Listen ();
|
Client.Listen ();
|
||||||
|
|
||||||
|
Client.Disconnect ();
|
||||||
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -212,6 +212,7 @@ namespace SparkleLib {
|
||||||
|
|
||||||
LocalTimer.Start ();
|
LocalTimer.Start ();
|
||||||
|
|
||||||
|
CheckForRemoteChanges ();
|
||||||
|
|
||||||
// Add everything that changed
|
// Add everything that changed
|
||||||
// since SparkleShare was stopped
|
// since SparkleShare was stopped
|
||||||
|
|
Loading…
Reference in a new issue