Bump to 1.3.1
[slixmpp.git] / sleekxmpp / plugins / xep_0279 / stanza.py
blob181b59574bb1ef335e34417c1277c09452a4c306
1 """
2 SleekXMPP: The Sleek XMPP Library
3 Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
4 This file is part of SleekXMPP.
6 See the file LICENSE for copying permission.
7 """
9 from sleekxmpp.xmlstream import ElementBase
12 class IPCheck(ElementBase):
14 name = 'ip'
15 namespace = 'urn:xmpp:sic:0'
16 plugin_attrib = 'ip_check'
17 interfaces = set(['ip_check'])
18 is_extension = True
20 def get_ip_check(self):
21 return self.xml.text
23 def set_ip_check(self, value):
24 if value:
25 self.xml.text = value
26 else:
27 self.xml.text = ''
29 def del_ip_check(self):
30 self.xml.text = ''