When not set the key user try to join no key
This commit is contained in:
parent
876c331d84
commit
c869a07bd6
|
@ -57,10 +57,6 @@ namespace SparkleLib {
|
||||||
uri = "irc://204.62.14.135/";
|
uri = "irc://204.62.14.135/";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key == null) {
|
|
||||||
key = "12345";
|
|
||||||
}
|
|
||||||
|
|
||||||
Uri announce_uri = new Uri (uri);
|
Uri announce_uri = new Uri (uri);
|
||||||
|
|
||||||
// We use only one listener per server to keep
|
// We use only one listener per server to keep
|
||||||
|
|
|
@ -111,9 +111,14 @@ namespace SparkleLib {
|
||||||
|
|
||||||
foreach (string channel in base.channels) {
|
foreach (string channel in base.channels) {
|
||||||
SparkleHelpers.DebugInfo ("ListenerIrc", "Joining channel " + channel);
|
SparkleHelpers.DebugInfo ("ListenerIrc", "Joining channel " + channel);
|
||||||
this.client.RfcJoin (channel);
|
if (key != null) {
|
||||||
this.client.RfcMode (channel, "+s");
|
SparkleHelpers.DebugInfo ("ListenerIrc", "Ussing key");
|
||||||
|
this.client.RfcJoin (channel, key);
|
||||||
this.client.RfcMode (channel, "+k " + key);
|
this.client.RfcMode (channel, "+k " + key);
|
||||||
|
} else {
|
||||||
|
this.client.RfcJoin (channel);
|
||||||
|
}
|
||||||
|
this.client.RfcMode (channel, "+s");
|
||||||
}
|
}
|
||||||
|
|
||||||
// List to the channel, this blocks the thread
|
// List to the channel, this blocks the thread
|
||||||
|
@ -140,9 +145,14 @@ namespace SparkleLib {
|
||||||
|
|
||||||
if (IsConnected) {
|
if (IsConnected) {
|
||||||
SparkleHelpers.DebugInfo ("ListenerIrc", "Joining channel " + channel);
|
SparkleHelpers.DebugInfo ("ListenerIrc", "Joining channel " + channel);
|
||||||
this.client.RfcJoin (channel);
|
if (key != null) {
|
||||||
this.client.RfcMode (channel, "+s");
|
SparkleHelpers.DebugInfo ("ListenerIrc", "Ussing key");
|
||||||
|
this.client.RfcJoin (channel, key);
|
||||||
this.client.RfcMode (channel, "+k " + key);
|
this.client.RfcMode (channel, "+k " + key);
|
||||||
|
} else {
|
||||||
|
this.client.RfcJoin (channel);
|
||||||
|
}
|
||||||
|
this.client.RfcMode (channel, "+s");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue