aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/juick/http/www/Main.java')
-rw-r--r--src/java/com/juick/http/www/Main.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/Main.java b/src/java/com/juick/http/www/Main.java
index c7295ce6..26655897 100644
--- a/src/java/com/juick/http/www/Main.java
+++ b/src/java/com/juick/http/www/Main.java
@@ -43,6 +43,7 @@ public class Main extends HttpServlet {
Stream xmpp;
Home home = new Home();
Discover discover = new Discover();
+ PM pm = new PM();
Login login = new Login();
Help help = new Help();
User pagesUser = new User();
@@ -130,6 +131,13 @@ public class Main extends HttpServlet {
} else {
login.doGetLogin(sql, request, response);
}
+ } else if (uri.equals("/pm")) {
+ com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
+ if (visitor == null) {
+ login.doGetLoginForm(sql, request, response);
+ } else {
+ pm.doGet(sql, request, response, visitor);
+ }
} else if (uri.equals("/logout")) {
login.doGetLogout(sql, request, response);
} else if (uri.equals("/settings")) {