From 9bc9e4880e152cfbaa2e18a32c69c79fecc8930d Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Mon, 20 Feb 2006 16:39:46 +0000 Subject: [PATCH] Bug 327710: Ident server uses wrong disconnect function, patch by Robert Marshall (tH) , r=Silver git-svn-id: svn://10.0.0.236/trunk@190575 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/irc/js/lib/ident.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/extensions/irc/js/lib/ident.js b/mozilla/extensions/irc/js/lib/ident.js index f21c312de56..4a151e50fa9 100644 --- a/mozilla/extensions/irc/js/lib/ident.js +++ b/mozilla/extensions/irc/js/lib/ident.js @@ -182,7 +182,7 @@ function ident_listener_rawdata(e) if (!ports) { - this.disconnect(); // same meaning as "ERROR : UNKNOWN-ERROR" + this.connection.disconnect(); // same meaning as "ERROR : UNKNOWN-ERROR" return; } @@ -209,7 +209,7 @@ function ident_listener_request(e) if (!validPort(e.localPort) || !validPort(e.remotePort)) { this.connection.sendData(response("ERROR : INVALID-PORT")); - this.disconnect(); + this.connection.disconnect(); return; } @@ -234,5 +234,5 @@ function ident_listener_request(e) // Spec gives us a choice: drop the connection, or listen for more queries. // Since IRC servers will only ever want one name, we disconnect. - this.disconnect(); + this.connection.disconnect(); }