summaryrefslogtreecommitdiff
path: root/src/multiuserchat.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/multiuserchat.py')
-rw-r--r--src/multiuserchat.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/multiuserchat.py b/src/multiuserchat.py
index fec1d0d3..4eaa696c 100644
--- a/src/multiuserchat.py
+++ b/src/multiuserchat.py
@@ -149,6 +149,13 @@ class MultiUserChat(object):
mes.setType('groupchat')
self.connection.send(mes)
+ def send_private_message(self, user_jid, message):
+ from common import debug
+ mes = Message(to=user_jid)
+ mes.setBody(message)
+ mes.setType('chat')
+ self.connection.send(mes)
+
def join_room(self, room, nick, password=None):
"""Join a new room"""
pres = Presence(to='%s/%s' % (room, nick))