diff --git a/Client/XmppClient.cs b/Client/XmppClient.cs index b2f5ec23..2b252069 100644 --- a/Client/XmppClient.cs +++ b/Client/XmppClient.cs @@ -774,7 +774,7 @@ public void Connect(string resource = null) /// of an XMPP extension failed. public void Authenticate(string username, string password) { - im.Autenticate(username, password); + im.Authenticate(username, password); } /// diff --git a/Im/XmppIm.cs b/Im/XmppIm.cs index 388226b1..ca01c3c4 100644 --- a/Im/XmppIm.cs +++ b/Im/XmppIm.cs @@ -402,7 +402,7 @@ public Roster Connect(string resource = null) /// An XMPP error occurred while negotiating the /// XML stream with the server, or resource binding failed, or the initialization /// of an XMPP extension failed. - public void Autenticate(string username, string password) + public void Authenticate(string username, string password) { username.ThrowIfNull("username"); password.ThrowIfNull("password"); @@ -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); + } + /// /// Sends a chat message with the specified content to the specified JID. ///