40 }, |
40 }, |
41 |
41 |
42 send_message: function (message) |
42 send_message: function (message) |
43 { |
43 { |
44 return this.send_stanza($msg({to: this.jid, type: "groupchat"}) |
44 return this.send_stanza($msg({to: this.jid, type: "groupchat"}) |
|
45 .c("body").t(message||"")); |
|
46 }, |
|
47 |
|
48 send_private_message: function (nick, message) |
|
49 { |
|
50 return this.send_stanza($msg({to: this.jid+"/"+nick, type: "chat"}) |
45 .c("body").t(message||"")); |
51 .c("body").t(message||"")); |
46 }, |
52 }, |
47 |
53 |
48 send_stanza: function (stanza) |
54 send_stanza: function (stanza) |
49 { |
55 { |