aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-21 15:18:54 +0300
committerGravatar Vitaly Takmazov2018-03-21 15:18:54 +0300
commit2fda6291ef2869d4f5f29afa92737d8f0f527a0e (patch)
tree1ed1551abe8ffbda033973ab1ad4079fadc97dd5 /juick-server/src/main/java/com
parent2c1ea441673d9d6370e2ea419f2d0f9a863cb0d3 (diff)
xmpp: restore full tests
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r--juick-server/src/main/java/com/juick/server/XMPPBot.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/server/XMPPBot.java b/juick-server/src/main/java/com/juick/server/XMPPBot.java
index d8901fbb..29637032 100644
--- a/juick-server/src/main/java/com/juick/server/XMPPBot.java
+++ b/juick-server/src/main/java/com/juick/server/XMPPBot.java
@@ -713,7 +713,7 @@ public class XMPPBot implements StanzaListener, AutoCloseable {
return "Temporarily unavailable";
}
@UserCommand(pattern = "^(#+)$", help = "# - Show last messages from your feed (## - second page, ...)")
- public String commandMyFeed(User user, String... arguments) {
+ public String commandMyFeed(User user, Jid from, String... arguments) {
// number of # is the page count
int page = arguments[0].length() - 1;
List<Integer> mids = messagesService.getMyFeed(user.getUid(), page, false);
@@ -724,7 +724,7 @@ public class XMPPBot implements StanzaListener, AutoCloseable {
}
@UserCommand(pattern = "^(#|\\.)(\\d+)((\\.|\\-|\\/)(\\d+))?\\s([\\s\\S]+)",
help = "#1234 *tag *tag2 - edit tags\n#1234 text - reply to message")
- public String EditOrReply(User user, String... args) {
+ public String EditOrReply(User user, Jid from, String... args) {
int mid = NumberUtils.toInt(args[1]);
int rid = NumberUtils.toInt(args[4], 0);
String txt = args[5];