summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza/nick.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2009-12-15 04:37:10 +0000
committerNathan Fritz <fritzy@netflint.net>2009-12-15 04:37:10 +0000
commit6897a0b57c299cff9e32fde4dcb4209e70fb4bcb (patch)
treecbe75272586755074840dd37d5b848a0c38de0b6 /sleekxmpp/stanza/nick.py
parentca044a4934bc6373988a1b442da3673b70357317 (diff)
downloadslixmpp-6897a0b57c299cff9e32fde4dcb4209e70fb4bcb.tar.gz
slixmpp-6897a0b57c299cff9e32fde4dcb4209e70fb4bcb.tar.bz2
slixmpp-6897a0b57c299cff9e32fde4dcb4209e70fb4bcb.tar.xz
slixmpp-6897a0b57c299cff9e32fde4dcb4209e70fb4bcb.zip
* added error, htmlim, roster, and nick stanza plugins
Diffstat (limited to 'sleekxmpp/stanza/nick.py')
-rw-r--r--sleekxmpp/stanza/nick.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/sleekxmpp/stanza/nick.py b/sleekxmpp/stanza/nick.py
new file mode 100644
index 00000000..438b5a9b
--- /dev/null
+++ b/sleekxmpp/stanza/nick.py
@@ -0,0 +1,16 @@
+from .. xmlstream.stanzabase import ElementBase, ET
+
+class HTMLIM(ElementBase):
+ namespace = 'http://jabber.org/nick/nick'
+ name = 'nick'
+ plugin_attrib = 'nick'
+ interfaces = set(('nick'))
+
+ def setNick(self, nick):
+ self.xml.text = nick
+
+ def getNick(self):
+ return self.xml.text
+
+ def delNick(self):
+ return self.__del__()