1.1 --- a/src/org/sonews/daemon/command/PostCommand.java Sun Sep 11 17:36:47 2011 +0200
1.2 +++ b/src/org/sonews/daemon/command/PostCommand.java Thu Oct 20 10:50:58 2011 +0200
1.3 @@ -210,6 +210,10 @@
1.4
1.5 private void postArticle(NNTPConnection conn, Article article)
1.6 throws IOException {
1.7 + if (conn.isUserAuthenticated()) {
1.8 + article.setAuthenticatedUser(conn.getUsername());
1.9 + }
1.10 +
1.11 if (article.getHeader(Headers.CONTROL)[0].length() > 0) {
1.12 controlMessage(conn, article);
1.13 } else if (article.getHeader(Headers.SUPERSEDES)[0].length() > 0) {
1.14 @@ -218,7 +222,7 @@
1.15 // Circle check; note that Path can already contain the hostname here
1.16 String host = Config.inst().get(Config.HOSTNAME, "localhost");
1.17 if (article.getHeader(Headers.PATH)[0].indexOf(host + "!", 1) > 0) {
1.18 - Log.get().info(article.getMessageID() + " skipped for host " + host);
1.19 + Log.get().log(Level.INFO, "{0} skipped for host {1}", new Object[]{article.getMessageID(), host});
1.20 conn.println("441 I know this article already");
1.21 return;
1.22 }