line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Hotline::PrivateChat; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
## Copyright(c) 1998-2002 by John C. Siracusa. All rights reserved. This |
4
|
|
|
|
|
|
|
## program is free software; you can redistribute it and/or modify it under |
5
|
|
|
|
|
|
|
## the same terms as Perl itself. |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
13
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
4
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
238
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
$VERSION = '0.80'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new |
14
|
|
|
|
|
|
|
{ |
15
|
0
|
|
|
0
|
1
|
|
my($class, @args) = @_; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
my($self); |
18
|
|
|
|
|
|
|
|
19
|
0
|
0
|
|
|
|
|
if(@args) |
20
|
|
|
|
|
|
|
{ |
21
|
0
|
|
|
|
|
|
$self = |
22
|
|
|
|
|
|
|
{ |
23
|
|
|
|
|
|
|
'REFERENCE' => $args[0], |
24
|
|
|
|
|
|
|
'USER_LIST' => $args[1], |
25
|
|
|
|
|
|
|
'SUBJECT' => $args[2] |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
else |
29
|
|
|
|
|
|
|
{ |
30
|
0
|
|
|
|
|
|
$self = |
31
|
|
|
|
|
|
|
{ |
32
|
|
|
|
|
|
|
'REFERENCE' => undef, |
33
|
|
|
|
|
|
|
'USER_LIST' => undef, |
34
|
|
|
|
|
|
|
'SUBJECT' => undef |
35
|
|
|
|
|
|
|
}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
bless $self, $class; |
39
|
0
|
|
|
|
|
|
return $self; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub reference |
43
|
|
|
|
|
|
|
{ |
44
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'REFERENCE'} = $_[1] if(@_ == 2); |
45
|
0
|
|
|
|
|
|
return $_[0]->{'REFERENCE'}; |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub userlist |
49
|
|
|
|
|
|
|
{ |
50
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'USER_LIST'} = $_[1] if(@_ == 2); |
51
|
0
|
|
|
|
|
|
return $_[0]->{'USER_LIST'}; |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub subject |
55
|
|
|
|
|
|
|
{ |
56
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'SUBJECT'} = $_[1] if(@_ == 2); |
57
|
0
|
|
|
|
|
|
return $_[0]->{'SUBJECT'}; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |