Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct misspelling of 'Authenticate' #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Client/XmppClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ public void Connect(string resource = null)
/// of an XMPP extension failed.</exception>
public void Authenticate(string username, string password)
{
im.Autenticate(username, password);
im.Authenticate(username, password);
}

/// <summary>
Expand Down
8 changes: 7 additions & 1 deletion Im/XmppIm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public Roster Connect(string resource = null)
/// <exception cref="XmppException">An XMPP error occurred while negotiating the
/// XML stream with the server, or resource binding failed, or the initialization
/// of an XMPP extension failed.</exception>
public void Autenticate(string username, string password)
public void Authenticate(string username, string password)
{
username.ThrowIfNull("username");
password.ThrowIfNull("password");
Expand All @@ -415,6 +415,12 @@ public void Autenticate(string username, string password)
SendPresence(new Presence());
}

[Obsolete("Use the appropriately-spelled 'Authenticate(string, string)' method instead.")]
public void Autenticate(string username, string password)
{
Authenticate(username, password);
}

/// <summary>
/// Sends a chat message with the specified content to the specified JID.
/// </summary>
Expand Down