projects
/
docbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81d0e54
)
- only use search website if the url is configured
author
Andreas 'ads' Scherbaum
<ads@pgug.de>
Fri, 9 Mar 2012 20:45:10 +0000
(21:45 +0100)
committer
Andreas 'ads' Scherbaum
<ads@pgug.de>
Fri, 9 Mar 2012 20:45:10 +0000
(21:45 +0100)
docbot.pl
patch
|
blob
|
blame
|
history
diff --git
a/docbot.pl
b/docbot.pl
index 5c173453d8731f03d522ae60f7d6efcb90a1b529..8b34ef590fcf4d0a8e37a2aaa91492852cd78587 100755
(executable)
--- a/
docbot.pl
+++ b/
docbot.pl
@@
-1852,7
+1852,9
@@
sub handle_command_search {
} else {
$line = scalar(@rows) . " " . translate_text_for_channel($replyto, 'more_results', 'more results');
}
- $line .= ': ' . config_get_key2('search', 'searchsite') . uri_escape($string);
+ if (length(config_get_key2('search', 'searchsite')) > 0) {
+ $line .= ': ' . config_get_key2('search', 'searchsite') . uri_escape($string);
+ }
push(@lines, $line);
}