Software /
code /
verse
Comparison
component.lua @ 410:6171ef2a4025
component: Import sha1 via util.hashes
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 07 Apr 2017 19:39:59 +0200 |
parent | 400:0db9cb909cf1 |
child | 411:db462d4feb44 |
comparison
equal
deleted
inserted
replaced
409:171c4a8cc3de | 410:6171ef2a4025 |
---|---|
2 local stream = verse.stream_mt; | 2 local stream = verse.stream_mt; |
3 | 3 |
4 local jid_split = require "util.jid".split; | 4 local jid_split = require "util.jid".split; |
5 local lxp = require "lxp"; | 5 local lxp = require "lxp"; |
6 local st = require "util.stanza"; | 6 local st = require "util.stanza"; |
7 local sha1 = require "util.sha1".sha1; | 7 local sha1 = require "util.hashes".sha1; |
8 | 8 |
9 -- Shortcuts to save having to load util.stanza | 9 -- Shortcuts to save having to load util.stanza |
10 verse.message, verse.presence, verse.iq, verse.stanza, verse.reply, verse.error_reply = | 10 verse.message, verse.presence, verse.iq, verse.stanza, verse.reply, verse.error_reply = |
11 st.message, st.presence, st.iq, st.stanza, st.reply, st.error_reply; | 11 st.message, st.presence, st.iq, st.stanza, st.reply, st.error_reply; |
12 | 12 |