projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
started the addition of help files
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 7d835171d5d88ff9edc2e2db94a913f82698ba83..5a9ca3b2de56c41bfae40ef7f480c28e840a8f4f 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-57,6
+57,7
@@
use vars qw(%channels %valid);
confmode => '0,In Conference?,yesno',
dx => '0,DX Spots,yesno',
redirect => '0,Redirect messages to',
confmode => '0,In Conference?,yesno',
dx => '0,DX Spots,yesno',
redirect => '0,Redirect messages to',
+ lang => '0,Language',
);
# create a new channel object [$obj = DXChannel->new($call, $msg_conn_obj, $user_obj)]
);
# create a new channel object [$obj = DXChannel->new($call, $msg_conn_obj, $user_obj)]
@@
-189,6
+190,18
@@
sub state
dbg('state', "$self->{call} channel state $self->{oldstate} -> $self->{state}\n");
}
dbg('state', "$self->{call} channel state $self->{oldstate} -> $self->{state}\n");
}
+# disconnect this channel
+sub disconnect
+{
+ my $self = shift;
+ my $user = $self->{user};
+ my $conn = $self->{conn};
+ $self->finish();
+ $user->close() if defined $user;
+ $conn->disconnect() if defined $conn;
+ $self->del();
+}
+
# various access routines
#
# various access routines
#