summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-01-08 23:08:12 +0000
committerNathan Fritz <fritzy@netflint.net>2010-01-08 23:08:12 +0000
commit13d7328886aab759153ed83c051320a21bf63e40 (patch)
treeeafd4d1ad8c9ef73ffc7f7481b671cb622f45a98 /sleekxmpp
parentda56bef90ba176a673630ca4d9b7d7811d7b0ff3 (diff)
downloadslixmpp-13d7328886aab759153ed83c051320a21bf63e40.tar.gz
slixmpp-13d7328886aab759153ed83c051320a21bf63e40.tar.bz2
slixmpp-13d7328886aab759153ed83c051320a21bf63e40.tar.xz
slixmpp-13d7328886aab759153ed83c051320a21bf63e40.zip
muc message stanza enhancements
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/stanza/message.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/sleekxmpp/stanza/message.py b/sleekxmpp/stanza/message.py
index a3f2901c..f57ddbe0 100644
--- a/sleekxmpp/stanza/message.py
+++ b/sleekxmpp/stanza/message.py
@@ -4,7 +4,7 @@ from . error import Error
from . rootstanza import RootStanza
class Message(RootStanza):
- interfaces = set(('type', 'to', 'from', 'id', 'body', 'subject', 'groupchat'))
+ interfaces = set(('type', 'to', 'from', 'id', 'body', 'subject', 'mucroom', 'mucnick'))
types = set((None, 'normal', 'chat', 'headline', 'error', 'groupchat'))
sub_interfaces = set(('body', 'subject'))
name = 'message'
@@ -30,3 +30,26 @@ class Message(RootStanza):
self['body'] = body
return self
+ def getMucroom(self):
+ if self['type'] == 'groupchat':
+ return self['from'].bare
+ else:
+ return ''
+
+ def setMucroom(self, value):
+ pass
+
+ def delMucroom(self):
+ pass
+
+ def getMucnick(self):
+ if self['type'] == 'groupchat':
+ return self['from'].resource
+ else:
+ return ''
+
+ def setMucnick(self, value):
+ pass
+
+ def delMucnick(self):
+ pass