Skip to content

Commit

Permalink
Check result of identica pull against $user only.
Browse files Browse the repository at this point in the history
.
Because $dent maybe get some garbage when it not connect to
Identi.ca succesful
  • Loading branch information
jotamjr committed Sep 28, 2010
1 parent defdd47 commit c53595a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.pl
Expand Up @@ -424,7 +424,7 @@ sub on_public {
}
elsif ($msg =~ m/^identica pull/) {
my ($user, $dent) = &identica_pull();
if ($user && $dent){
if ($user){
&say("En identica $user dijo: $dent", $nick, $usenick, $priv);
}else{
&say("Ergg un error en Identi.ca seguramente :\\", $nick, $usenick, $priv);
Expand Down

0 comments on commit c53595a

Please sign in to comment.