aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp/s2s/JuickBot.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-07 09:39:35 +0300
committerGravatar Vitaly Takmazov2016-06-07 09:39:35 +0300
commit7db1637114eaaf36fb229999b478abc0bb3b1ab5 (patch)
tree995f7e591e60f97697983f2e3832c25ee0a4b718 /src/main/java/com/juick/xmpp/s2s/JuickBot.java
parente7e9bed758028e1555c9cbbcaaa29fe5504db280 (diff)
refactoring
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s/JuickBot.java')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/JuickBot.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/JuickBot.java b/src/main/java/com/juick/xmpp/s2s/JuickBot.java
index 0b9cceaf..25c75dfe 100644
--- a/src/main/java/com/juick/xmpp/s2s/JuickBot.java
+++ b/src/main/java/com/juick/xmpp/s2s/JuickBot.java
@@ -198,10 +198,10 @@ public class JuickBot {
}
jmsg.setText(msg.body);
m.childs.add(jmsg);
- XMPPComponent.connRouter.sendStanza(m.toString());
+ XMPPComponent.connRouter.router.send(m.toString());
m.to.Host = "ws.juick.com";
- XMPPComponent.connRouter.sendStanza(m.toString());
+ XMPPComponent.connRouter.router.send(m.toString());
String jid;
boolean inroster = false;
@@ -337,10 +337,10 @@ public class JuickBot {
jmsg.setUser(user_from);
jmsg.setText(body);
msg.childs.add(jmsg);
- XMPPComponent.connRouter.sendStanza(msg.toString());
+ XMPPComponent.connRouter.router.send(msg.toString());
msg.to.Host = "ws.juick.com";
- XMPPComponent.connRouter.sendStanza(msg.toString());
+ XMPPComponent.connRouter.router.send(msg.toString());
if (jid_to != null) {
Message mm = new Message();