projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fa9e414
)
fix it so that you can type in '0' again
author
minima
<minima>
Wed, 7 Nov 2001 12:40:22 +0000
(12:40 +0000)
committer
minima
<minima>
Wed, 7 Nov 2001 12:40:22 +0000
(12:40 +0000)
Changes
patch
|
blob
|
history
perl/console.pl
patch
|
blob
|
history
diff --git
a/Changes
b/Changes
index 3c472a5097924d5ed731fd54bf1412bd42bdd5f4..70f3e93ad6080312d0319442e0a39bf48c5624e9 100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-1,5
+1,6
@@
07Nov01=======================================================================
1. fix is_pctext so that it actually catches corrupt spots and announces.
07Nov01=======================================================================
1. fix is_pctext so that it actually catches corrupt spots and announces.
+2. fix console.pl so that you can type in '0' again
06Nov01=======================================================================
1. fix read so that sysop reading doesn't increment the read counter for
private mail not addressed to them.
06Nov01=======================================================================
1. fix read so that sysop reading doesn't increment the read counter for
private mail not addressed to them.
diff --git
a/perl/console.pl
b/perl/console.pl
index 8af9f3b3aed640fb6500efa34d1c471a1f192b38..eae1c0ff4451a477af22765c3d36cfd3f00bc538 100755
(executable)
--- a/
perl/console.pl
+++ b/
perl/console.pl
@@
-241,7
+241,7
@@
sub rec_socket
my ($sort, $call, $line) = $msg =~ /^(\w)([^\|]+)\|(.*)$/;
if ($sort && $sort eq 'D') {
my ($sort, $call, $line) = $msg =~ /^(\w)([^\|]+)\|(.*)$/;
if ($sort && $sort eq 'D') {
- $line = " " unless
$line
;
+ $line = " " unless
length($line)
;
addtotop($line);
} elsif ($sort && $sort eq 'Z') { # end, disconnect, go, away .....
cease(0);
addtotop($line);
} elsif ($sort && $sort eq 'Z') { # end, disconnect, go, away .....
cease(0);
@@
-269,11
+269,12
@@
sub rec_stdin
# print "sys: $r ($prbuf)\n";
if (defined $r) {
# print "sys: $r ($prbuf)\n";
if (defined $r) {
+ $r = '0' if !$r;
if ($r eq KEY_ENTER || $r eq "\n" || $r eq "\r") {
# save the lines
if ($r eq KEY_ENTER || $r eq "\n" || $r eq "\r") {
# save the lines
- $inbuf = " " unless
$inbuf
;
+ $inbuf = " " unless
length($inbuf)
;
# check for a pling and do a search back for a command
if ($inbuf =~ /^!/o) {
# check for a pling and do a search back for a command
if ($inbuf =~ /^!/o) {
@@
-392,7
+393,7
@@
sub rec_stdin
} elsif ($r eq KEY_RESIZE || $r eq "\0632") {
do_resize();
return;
} elsif ($r eq KEY_RESIZE || $r eq "\0632") {
do_resize();
return;
- } elsif (is_pctext($r)) {
+ } elsif (
defined
is_pctext($r)) {
# move the top screen back to the bottom if you type something
if ($spos < @shistory) {
$spos = @shistory;
# move the top screen back to the bottom if you type something
if ($spos < @shistory) {
$spos = @shistory;