1. Added talk mode so that I don't have to keep typing T <call> all the time.
[spider.git] / perl / client.pl
index 611c313daa61de0be049f8122a0b0dd977907717..740a9e7211d45bb27c4dfadf8cebe3f0243e0e7c 100755 (executable)
@@ -229,7 +229,7 @@ sub doconnect
                $sock->option_accept(Dont => TELOPT_ECHO, Wont => TELOPT_ECHO);
                $sock->open($host) or die "Can't connect to $host port $port $!";
                $sock->binmode(1);
-               $mode = ($port == 23) ? 2 : 3;
+               $mode = 3;
        } elsif ($sort eq 'ax25' || $sort eq 'prog') {
                my @args = split /\s+/, $line;
                $rfh = new IO::File;
@@ -289,7 +289,7 @@ sub dochat
                                $line =~ s/\r/\n/g;
                                chomp;
                        }
-                       dbg('connect', "received \"$line\"");
+                       dbg('connect', map { "received \"$_\"" } split /\n/, $line);
                        if ($abort && $line =~ /$abort/i) {
                                dbg('connect', "aborted on /$abort/");
                                cease(11);