Bump to 1.3.1
[slixmpp.git] / sleekxmpp / stanza / nick.py
blob0e9a5c2ba16c8412b340d1f161f96b54c6dde714
1 """
2 SleekXMPP: The Sleek XMPP Library
3 Copyright (C) 2010 Nathanael C. Fritz
4 This file is part of SleekXMPP.
6 See the file LICENSE for copying permission.
7 """
9 # The nickname stanza has been moved to its own plugin, but the existing
10 # references are kept for backwards compatibility.
12 from sleekxmpp.stanza import Message, Presence
13 from sleekxmpp.xmlstream import register_stanza_plugin
14 from sleekxmpp.plugins.xep_0172 import UserNick as Nick
16 register_stanza_plugin(Message, Nick)
17 register_stanza_plugin(Presence, Nick)
19 # To comply with PEP8, method names now use underscores.
20 # Deprecated method names are re-mapped for backwards compatibility.
21 Nick.setNick = Nick.set_nick
22 Nick.getNick = Nick.get_nick
23 Nick.delNick = Nick.del_nick