'Send message'

def send_msg(self, msg):

    jid = xmpp.JID(self.j_user)
    client = xmpp.Client(self.serv, debug=[])
    client.connect(server=(self.serv, 5222))
    client.auth(jid.getNode(), self.j_pass, resource=jid.getResource())
    message = xmpp.Message(self.j_to, msg)
    message.setAttr('type', 'chat')
    client.send(message)
    client.disconnect()
