summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2007-11-17 15:56:43 +0000
committerAndreas Brachold <vdr07@deltab.de>2007-11-17 15:56:43 +0000
commit66b723e79ec3aad5dcb6d7e348d3790c461a2553 (patch)
tree666a43c63dddfe28964538597e6a6bae2e85a3ac /lib
parent74cbc655e511529ad62b3e12b20eef6df65083de (diff)
downloadxxv-66b723e79ec3aad5dcb6d7e348d3790c461a2553.tar.gz
xxv-66b723e79ec3aad5dcb6d7e348d3790c461a2553.tar.bz2
* CHANNELS: Fix some typos
Diffstat (limited to 'lib')
-rw-r--r--lib/XXV/MODULES/CHANNELS.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/XXV/MODULES/CHANNELS.pm b/lib/XXV/MODULES/CHANNELS.pm
index e4f74fb..1bab6a5 100644
--- a/lib/XXV/MODULES/CHANNELS.pm
+++ b/lib/XXV/MODULES/CHANNELS.pm
@@ -237,8 +237,7 @@ sub _init {
return 0;
}
- my $erg = $obj->readData();
- return 1;
+ return $obj->readData();
}, "CHANNELS: Read and register channels ...", 5);
return 1;
}
@@ -342,9 +341,9 @@ sub readData {
my $obj = shift || return error('No object defined!');
my $watcher = shift;
my $console = shift;
- my $file = $obj->{file} || return 1, error ('No Channels File');
+ my $file = $obj->{file} || return error ('No Channels File');
- return 1, panic ("Couldn't find channels.conf as file $file!") if( ! -e $file);
+ return panic ("Couldn't find channels.conf as file $file!") if( ! -e $file);
# only if file modification from last read time
my $mtime = (stat($file)->mtime);