Skip to content

Commit

Permalink
Add SSL support
Browse files Browse the repository at this point in the history
  • Loading branch information
evandixon committed Aug 25, 2020
1 parent c3cd5dd commit 9e69d98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Ditto/IrcConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public IrcConnection(IrcConnectionInfo ircConnectionInfo)
IrcClient.Connected += Irc_Connected;
IrcClient.ConnectFailed += Irc_ConnectFailed;
IrcClient.MotdReceived += Irc_MotdReceived;
IrcClient.Connect(ircConnectionInfo.Server, ircConnectionInfo.Port, false, ircConnectionInfo.GetRegistrationInfo());
IrcClient.Connect(ircConnectionInfo.Server, ircConnectionInfo.Port, ircConnectionInfo.UseSsl, ircConnectionInfo.GetRegistrationInfo());

// Wait for event handlers to authenticate and join the channel
Thread.Sleep(30 * 1000);
Expand Down
1 change: 1 addition & 0 deletions Ditto/IrcConnectionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public IrcConnectionInfo()

public string Server { get; set; }
public int Port { get; set; }
public bool UseSsl { get; set; }
public string Channel { get; set; }
public string ChannelPassword { get; set; }
public string Nick { get; set; }
Expand Down

0 comments on commit 9e69d98

Please sign in to comment.