projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1. added export_user.pl to export user files (for interest and safety)
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index e72be8020ae7c3c49740d90df4c48555702b23c5..b3929c1f2a2d5b45b53a09169294b29aa952952f 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-81,14
+81,16
@@
sub alloc
die "trying to create a duplicate channel for $call" if $channels{$call};
$self->{call} = $call;
$self->{conn} = $conn if defined $conn; # if this isn't defined then it must be a list
die "trying to create a duplicate channel for $call" if $channels{$call};
$self->{call} = $call;
$self->{conn} = $conn if defined $conn; # if this isn't defined then it must be a list
- $self->{user} = $user if defined $user;
+ if (defined $user) {
+ $self->{user} = $user;
+ $self->{lang} = $user->lang;
+ $user->new_group() if !$user->group;
+ $self->{group} = $user->group;
+ }
$self->{startt} = $self->{t} = time;
$self->{state} = 0;
$self->{oldstate} = 0;
$self->{startt} = $self->{t} = time;
$self->{state} = 0;
$self->{oldstate} = 0;
- $self->{lang} = $user->{lang} if defined $user;
$self->{lang} = $main::lang if !$self->{lang};
$self->{lang} = $main::lang if !$self->{lang};
- $user->new_group() if !$user->group;
- $self->{group} = $user->group;
$self->{func} = "";
bless $self, $pkg;
return $channels{$call} = $self;
$self->{func} = "";
bless $self, $pkg;
return $channels{$call} = $self;