Software /
code /
verse
Comparison
client.lua @ 62:d4b6f9e33c6e
verse.client: Load TLS along with other core plugins
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 11 May 2010 23:05:26 +0100 |
parent | 52:8416508bfeb4 |
child | 70:36d113fb0f3c |
comparison
equal
deleted
inserted
replaced
61:6adddfdf974b | 62:d4b6f9e33c6e |
---|---|
58 | 58 |
59 function stream:connect_client(jid, pass) | 59 function stream:connect_client(jid, pass) |
60 self.jid, self.password = jid, pass; | 60 self.jid, self.password = jid, pass; |
61 self.username, self.host, self.resource = jid_split(jid); | 61 self.username, self.host, self.resource = jid_split(jid); |
62 | 62 |
63 -- Required XMPP features | |
64 self:add_plugin("tls"); | |
63 self:add_plugin("sasl"); | 65 self:add_plugin("sasl"); |
64 self:add_plugin("bind"); | 66 self:add_plugin("bind"); |
65 self:add_plugin("session"); | 67 self:add_plugin("session"); |
66 | 68 |
67 self:hook("incoming-raw", function (data) return self.data(self.conn, data); end); | 69 self:hook("incoming-raw", function (data) return self.data(self.conn, data); end); |