diff -r 0bf10add82d9 -r d54786065fa3 src/org/sonews/daemon/command/PostCommand.java --- a/src/org/sonews/daemon/command/PostCommand.java Sun Sep 11 17:36:47 2011 +0200 +++ b/src/org/sonews/daemon/command/PostCommand.java Wed Oct 19 21:40:51 2011 +0200 @@ -210,6 +210,10 @@ private void postArticle(NNTPConnection conn, Article article) throws IOException { + if (conn.isUserAuthenticated()) { + article.setAuthenticatedUser(conn.getUsername()); + } + if (article.getHeader(Headers.CONTROL)[0].length() > 0) { controlMessage(conn, article); } else if (article.getHeader(Headers.SUPERSEDES)[0].length() > 0) { @@ -218,7 +222,7 @@ // Circle check; note that Path can already contain the hostname here String host = Config.inst().get(Config.HOSTNAME, "localhost"); if (article.getHeader(Headers.PATH)[0].indexOf(host + "!", 1) > 0) { - Log.get().info(article.getMessageID() + " skipped for host " + host); + Log.get().log(Level.INFO, "{0} skipped for host {1}", new Object[]{article.getMessageID(), host}); conn.println("441 I know this article already"); return; }