projects
/
docbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8797552
)
- remove warning
author
Andreas Scherbaum
<andreas@scherbaum.biz>
Fri, 17 Aug 2012 20:11:18 +0000
(22:11 +0200)
committer
Andreas Scherbaum
<andreas@scherbaum.biz>
Fri, 17 Aug 2012 20:11:18 +0000
(22:11 +0200)
docbot.pl
patch
|
blob
|
blame
|
history
diff --git
a/docbot.pl
b/docbot.pl
index 1d75a28b820a4970d616a5cf8d53100fe5533e03..9505fc9f32565e9ef7d639366f63f7f774332e6e 100755
(executable)
--- a/
docbot.pl
+++ b/
docbot.pl
@@
-2896,8
+2896,9
@@
sub handle_command_search {
} else {
$line = scalar(@rows) . " " . translate_text_for_channel($replyto, 'more_results', 'more results');
}
- if (length(config_get_key2('search', 'searchsite')) > 0) {
- $line .= ': ' . config_get_key2('search', 'searchsite') . uri_escape($string);
+ my $searchsite = config_get_key2('search', 'searchsite');
+ if (defined ($searchsite) and length($searchsite) > 0) {
+ $line .= ': ' . $searchsite . uri_escape($string);
}
push(@lines, $line);
}