projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added better anti spot-sucking
[spider.git]
/
cmd
/
show
/
talk.pl
diff --git
a/cmd/show/talk.pl
b/cmd/show/talk.pl
index f30d95ec57e9676e29f87cfdb772d242b70fe82e..81d6dc06b18a50d7abda3a9441785f3b9af98811 100644
(file)
--- a/
cmd/show/talk.pl
+++ b/
cmd/show/talk.pl
@@
-7,8
+7,6
@@
#
my $self = shift;
#
my $self = shift;
-return (1, $self->msg('e5')) if $self->priv < 9;
-
my $cmdline = shift;
my @f = split /\s+/, $cmdline;
my $f;
my $cmdline = shift;
my @f = split /\s+/, $cmdline;
my $f;
@@
-32,6
+30,10
@@
while ($f = shift @f) { # next field
$to = 20 unless $to;
$from = 0 unless $from;
$to = 20 unless $to;
$from = 0 unless $from;
+if ($self->priv < 6) {
+ $who = $self->call unless $who;
+ return (1, $self->msg('e5')) if $who ne $self->call;
+}
-@out = DXLog::print($from, $to, $main::systime, '
^
talk', $who);
+@out = DXLog::print($from, $to, $main::systime, 'talk', $who);
return (1, @out);
return (1, @out);