Permalink
Browse files

Update plugins/teamspeak/ts3v2_

prevent error "Use of uninitialized value $ARGV[0] in string eq"
  • Loading branch information...
1 parent 177cb87 commit c8d89f42f833c5ba2fa66bfe6ff0a6cda829a725 @Marenz Marenz committed Aug 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/teamspeak/ts3v2_
View
@@ -56,7 +56,7 @@ if ($0 =~ /$filename(\w+)$/i) {
#check for overview, transfer or single server mode
my $mode = "";
-if ($argument eq "overview" or $argument eq "transfer" or $ARGV[0] eq "suggest" or $ARGV[0] eq "autoconf") {
+if ($argument eq "overview" or $argument eq "transfer" or (defined $ARGV[0] and ($ARGV[0] eq "suggest" or $ARGV[0] eq "autoconf"))) {
if ($argument eq "overview") {
$mode = "o";
} elsif($argument eq "transfer") {

0 comments on commit c8d89f4

Please sign in to comment.