Comparison

plugins/jingle_s5b.lua @ 490:6b2f31da9610

Update for new Prosody module namespace
author Kim Alvefur <zash@zash.se>
date Sat, 20 May 2023 20:48:03 +0200
parent 457:73d4eb93657b
comparison
equal deleted inserted replaced
489:39ed19f12dca 490:6b2f31da9610
1 local verse = require "verse"; 1 local verse = require "verse";
2 2
3 local xmlns_s5b = "urn:xmpp:jingle:transports:s5b:1"; 3 local xmlns_s5b = "urn:xmpp:jingle:transports:s5b:1";
4 local xmlns_bytestreams = "http://jabber.org/protocol/bytestreams"; 4 local xmlns_bytestreams = "http://jabber.org/protocol/bytestreams";
5 local sha1 = require "util.hashes".sha1; 5 local sha1 = require "prosody.util.hashes".sha1;
6 local new_id = require "util.id".short; 6 local new_id = require "prosody.util.id".short;
7 7
8 local function negotiate_socks5(conn, hash) 8 local function negotiate_socks5(conn, hash)
9 local function suppress_connected() 9 local function suppress_connected()
10 conn:unhook("connected", suppress_connected); 10 conn:unhook("connected", suppress_connected);
11 return true; 11 return true;