Mercurial > prosody-hg
annotate plugins/mod_privacy.lua @ 8706:e2919978673e
net.http: Fix parameter order to http request callbacks
Commit e3b9dc9dd940 changed the parameter order in 2013, but did not update the names of the parameters in the callback function. Due to this inconsistency, 12df41a5a4b1 accidentally reversed the order when fixing the variable names without fixing where they are used.
Additionally the documentation was incorrect (since 2013), and this has also now been fixed.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 04 Apr 2018 18:27:44 +0100 |
| parents | 726b088f9408 |
| children | cac4bd0d3335 |
| rev | line source |
|---|---|
|
1522
569d58d21612
Add copyright header to those files missing one
Matthew Wild <mwild1@gmail.com>
parents:
1293
diff
changeset
|
1 -- Prosody IM |
| 2925 | 2 -- Copyright (C) 2009-2010 Matthew Wild |
| 3 -- Copyright (C) 2009-2010 Waqas Hussain | |
|
2496
f18b882af1d1
mod_privacy: Imported from prosody-modules.
Waqas Hussain <waqas20@gmail.com>
parents:
1522
diff
changeset
|
4 -- Copyright (C) 2009 Thilo Cestonaro |
|
5776
bd0ff8ae98a8
Remove all trailing whitespace
Florian Zeitz <florob@babelmonkeys.de>
parents:
5500
diff
changeset
|
5 -- |
|
1522
569d58d21612
Add copyright header to those files missing one
Matthew Wild <mwild1@gmail.com>
parents:
1293
diff
changeset
|
6 -- This project is MIT/X11 licensed. Please see the |
|
569d58d21612
Add copyright header to those files missing one
Matthew Wild <mwild1@gmail.com>
parents:
1293
diff
changeset
|
7 -- COPYING file in the source package for more information. |
|
569d58d21612
Add copyright header to those files missing one
Matthew Wild <mwild1@gmail.com>
parents:
1293
diff
changeset
|
8 -- |
|
569d58d21612
Add copyright header to those files missing one
Matthew Wild <mwild1@gmail.com>
parents:
1293
diff
changeset
|
9 |
|
3317
82b17b199d68
mod_privacy: Add service discovery feature.
Waqas Hussain <waqas20@gmail.com>
parents:
3313
diff
changeset
|
10 |
|
6346
ba7c86406d31
mod_privacy: Remove, leave a log message about being replaced by mod_blocklist and load that instead
Kim Alvefur <zash@zash.se>
parents:
5776
diff
changeset
|
11 -- COMPAT w/ pre 0.10 |
|
ba7c86406d31
mod_privacy: Remove, leave a log message about being replaced by mod_blocklist and load that instead
Kim Alvefur <zash@zash.se>
parents:
5776
diff
changeset
|
12 module:log("error", "The mod_privacy plugin has been replaced by mod_blocklist. Please update your config. For more information see https://prosody.im/doc/modules/mod_privacy"); |
|
ba7c86406d31
mod_privacy: Remove, leave a log message about being replaced by mod_blocklist and load that instead
Kim Alvefur <zash@zash.se>
parents:
5776
diff
changeset
|
13 module:depends("blocklist"); |
