summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/comments.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 4fa82f467..e43bbc49e 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -89,12 +89,10 @@ sub preprocess { # {{{
($commentauthorurl, $commentauthor) =
linkuser($params{username});
}
- elsif (defined $params{ip}) {
- $commentip = $params{ip};
- $commentauthor = sprintf(
- gettext("Anonymous (IP: %s)"), $params{ip});
- }
else {
+ if (defined $params{ip}) {
+ $commentip = $params{ip};
+ }
$commentauthor = gettext("Anonymous");
}