'Create, initialize, and send a Presence stanza.
If no recipient is specified, send the presence immediately.
Otherwise, forward the send request to the recipient\'s roster
entry for processing.
Arguments:
pshow     -- The presence\'s show value.
pstatus   -- The presence\'s status message.
ppriority -- This connections\' priority.
pto       -- The recipient of a directed presence.
pfrom     -- The sender of a directed presence, which should
be the owner JID plus resource.
ptype     -- The type of presence, such as \'subscribe\'.
pnick     -- Optional nickname of the presence\'s sender.'

def send_presence(self, **kwargs):

    if (self.xmpp.is_component and (not kwargs.get('pfrom', ''))):
        kwargs['pfrom'] = self.jid
    self.xmpp.send_presence(**kwargs)
