projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make setting of pc9x harder
[spider.git]
/
cmd
/
chat.pl
diff --git
a/cmd/chat.pl
b/cmd/chat.pl
index 545c7c78ef6fc2a3e404f3fbde282bf804d698bd..41cbb5caba4b9cde16abe870507f83e6fc310460 100644
(file)
--- a/
cmd/chat.pl
+++ b/
cmd/chat.pl
@@
-10,7
+10,7
@@
my ($self, $line) = @_;
my @f = split /\s+/, $line, 2;
my ($self, $line) = @_;
my @f = split /\s+/, $line, 2;
-return (1, $self->msg('e5')) if $self->remotecmd;
+return (1, $self->msg('e5')) if $self->remotecmd
|| $self->inscript
;
return (1, $self->msg('e34')) unless @f == 2;
return (1, $self->msg('e28')) unless $self->registered;
return (1, $self->msg('e34')) unless @f == 2;
return (1, $self->msg('e28')) unless $self->registered;
@@
-29,15
+29,15
@@
$line =~ s/\^/:/og;
my @bad;
if (@bad = BadWords::check($line)) {
$self->badcount(($self->badcount||0) + @bad);
my @bad;
if (@bad = BadWords::check($line)) {
$self->badcount(($self->badcount||0) + @bad);
- Log
('DXCommand', "$self->{call} swore: $line
");
+ Log
Dbg('DXCommand', "$self->{call} swore: $line (with words:" . join(',', @bad) . ")
");
Log('chat', $target, $from, "[to $from only] $line");
return (1, "$target de $from <$t>: $line");
}
Log('chat', $target, $from, "[to $from only] $line");
return (1, "$target de $from <$t>: $line");
}
-#PC12^IZ4DYU^
GROUP^PSE QSL INFO TO A71AW TNX IN ADV 73's^
^IK5PWJ-6^0^H21^~
+#PC12^IZ4DYU^
*^PSE QSL INFO TO A71AW TNX IN ADV 73's^<group>
^IK5PWJ-6^0^H21^~
my $msgid = DXProt::nextchatmsgid();
$text = "#$msgid $text";
my $msgid = DXProt::nextchatmsgid();
$text = "#$msgid $text";
-DXProt::send_chat($self, DXProt::pc12($from, $text, '*', $target), $from,
$target, $text, ' '
, $main::mycall, '0');
+DXProt::send_chat($self, DXProt::pc12($from, $text, '*', $target), $from,
'*', $text, $target
, $main::mycall, '0');
return (1, ());
return (1, ());