]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/comments.pm
comments: don't interpolate IP into anonymous user's "name"
[ikiwiki.git] / IkiWiki / Plugin / comments.pm
index 4fa82f4678da6fb1e211d2c0a9ff9374eaa73377..e43bbc49ed3ba0e3606bbb6acb1887ade226b261 100644 (file)
@@ -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");
        }