From bf9bb7d4ef02572a98dde8208608c1eed34a3e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Wed, 25 Aug 1999 19:38:01 +0200 Subject: [PATCH] Fixed typo, and minor cleanups. Rev: lib/modules/Protocols.pmod/TELNET.pmod:1.8 --- lib/modules/Protocols.pmod/TELNET.pmod | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/modules/Protocols.pmod/TELNET.pmod b/lib/modules/Protocols.pmod/TELNET.pmod index 7b9d4b5109..3c9ab95def 100644 --- a/lib/modules/Protocols.pmod/TELNET.pmod +++ b/lib/modules/Protocols.pmod/TELNET.pmod @@ -1,5 +1,5 @@ // -// $Id: TELNET.pmod,v 1.7 1999/06/05 04:20:03 hubbe Exp $ +// $Id: TELNET.pmod,v 1.8 1999/08/25 17:38:01 grubba Exp $ // // The TELNET protocol as described by RFC 764 and others. // @@ -610,7 +610,7 @@ class protocol break; #if 0 - case "EL": // Erase Line + case EL: // Erase Line for (j=0; j < i; j++) { a[j] = ""; } @@ -726,7 +726,8 @@ class protocol break; } } else { - a[i] = "\377"; + // IAC IAC => IAC + a[i] = C(IAC); i++; } } @@ -835,8 +836,8 @@ class LineMode { DWRITE(sprintf("Line callback... %O\n",data)); data=replace(data, - ({"\r\n","\r\n","\r","\r\0"}), - ({"\r", "\r", "\r","\r",})); + ({"\r\n", "\n", "\r", "\r\0"}), + ({"\r", "\r", "\r", "\r",})); line_buffer+=data; string *tmp=line_buffer/"\r"; line_buffer=tmp[-1]; -- GitLab