Software /
code /
verse
Comparison
client.lua @ 38:c40cc28ac7df
verse.client: Automatically load sasl and bind plugins
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 21 Dec 2009 19:28:02 +0000 |
parent | 37:0ccd523e110a |
child | 46:6a329776fb42 |
comparison
equal
deleted
inserted
replaced
37:0ccd523e110a | 38:c40cc28ac7df |
---|---|
55 end | 55 end |
56 | 56 |
57 function stream:connect_client(jid, pass) | 57 function stream:connect_client(jid, pass) |
58 self.jid, self.password = jid, pass; | 58 self.jid, self.password = jid, pass; |
59 self.username, self.host, self.resource = jid_split(jid); | 59 self.username, self.host, self.resource = jid_split(jid); |
60 | |
61 self:add_plugin("sasl"); | |
62 self:add_plugin("bind"); | |
60 | 63 |
61 self:hook("incoming-raw", function (data) return self.data(self.conn, data); end); | 64 self:hook("incoming-raw", function (data) return self.data(self.conn, data); end); |
62 | 65 |
63 self.curr_id = 0; | 66 self.curr_id = 0; |
64 | 67 |