Skip to content

Commit

Permalink
Fixed warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhost committed Sep 13, 2014
1 parent 500a641 commit f596346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sendxmpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ sub read_config_file ($) { # {{{
}

# account with weird port number
if ($config{'jserver'} =~ /(.*):(\d+)/) {
if (defined($config{'jserver'}) and $config{'jserver'} =~ /(.*):(\d+)/) {
$config{'jserver'} = $1;
$config{'port'} = $2;
}

# account with specific connection host
if ($config{'jserver'} =~ /(.*);([-\.\w]+)/) {
if (defined($config{'jserver'}) and $config{'jserver'} =~ /(.*);([-\.\w]+)/) {
$config{'jserver'} = $2;
$config{'username'} .= "\@$1" unless $config{'component'};
}
Expand Down

0 comments on commit f596346

Please sign in to comment.