aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/PM.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/PM.java')
-rw-r--r--juick-api/src/main/java/com/juick/api/PM.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/PM.java b/juick-api/src/main/java/com/juick/api/PM.java
index 631ae978..44c43f89 100644
--- a/juick-api/src/main/java/com/juick/api/PM.java
+++ b/juick-api/src/main/java/com/juick/api/PM.java
@@ -3,6 +3,7 @@ package com.juick.api;
import com.juick.json.MessageSerializer;
import com.juick.server.PMQueries;
import com.juick.server.UserQueries;
+import com.juick.util.UserUtils;
import com.juick.xmpp.JID;
import com.juick.xmpp.Message;
import com.juick.xmpp.Stream;
@@ -57,7 +58,7 @@ public class PM {
throws ServletException, IOException {
String uname = request.getParameter("uname");
int uid = 0;
- if (UserQueries.checkUserNameValid(uname)) {
+ if (UserUtils.checkUserNameValid(uname)) {
uid = UserQueries.getUIDbyName(sql, uname);
}