summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorPreston Cody <codeman@gentoo.org>2007-12-26 05:18:56 +0000
committerPreston Cody <codeman@gentoo.org>2007-12-26 05:18:56 +0000
commit0c2526b53e0753acd006f5aad32228d1da88a2d5 (patch)
treea95d8d9ae61f09a4421a75099be4259eb6978937 /client
parentcopied config reading from the client (diff)
downloadscire-0c2526b53e0753acd006f5aad32228d1da88a2d5.tar.gz
scire-0c2526b53e0753acd006f5aad32228d1da88a2d5.tar.bz2
scire-0c2526b53e0753acd006f5aad32228d1da88a2d5.zip
if to unless b/c of possible undef.
svn path=/branches/new-fu/; revision=265
Diffstat (limited to 'client')
-rwxr-xr-xclient/scireclient.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/scireclient.pl b/client/scireclient.pl
index fc02c54..4cd8f0e 100755
--- a/client/scireclient.pl
+++ b/client/scireclient.pl
@@ -162,8 +162,8 @@ sub identify_client {
send_command("IDENTIFY", $client_key);
my $response = get_response();
$response =~ /^(OK|ERROR)(?: (.+))?$/;
- if($1 eq "ERROR") {
- print "Could not identify to server: $2\n";
+ unless ($1 and ($1 eq "OK")) {
+ print "Could not identify to server: $response\n";
return 0;
}
# print "Registered client $conf{client_id}\n" if $conf{debug};