'Publish the user\'s current nick.
Arguments:
nick     -- The user nickname to publish.
options  -- Optional form of publish options.
ifrom    -- Specify the sender\'s JID.
block    -- Specify if the send call will block until a response
is received, or a timeout occurs. Defaults to True.
timeout  -- The length of time (in seconds) to wait for a response
before exiting the send call if blocking is used.
Defaults to sleekxmpp.xmlstream.RESPONSE_TIMEOUT
callback -- Optional reference to a stream handler function. Will
be executed when a reply stanza is received.'

def publish_nick(self, nick=None, options=None, ifrom=None, block=True, callback=None, timeout=None):

    nickname = UserNick()
    nickname['nick'] = nick
    return self.xmpp['xep_0163'].publish(nickname, node=UserNick.namespace, options=options, ifrom=ifrom, block=block, callback=callback, timeout=timeout)
