Diff

plugins/mod_pep.lua @ 5002:7a0b17118987

mod_pep: Allow configurable service discovery identity
author IRON <iron.udjin@gmail.com>
date Wed, 25 Jul 2012 18:49:13 +0300
parent 4394:676b0845eae4
child 5004:047f6621e709
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Tue Jul 24 10:56:47 2012 +0100
+++ b/plugins/mod_pep.lua	Wed Jul 25 18:49:13 2012 +0300
@@ -32,7 +32,7 @@
 	hash_map = state.hash_map or {};
 end
 
-module:add_identity("pubsub", "pep", "Prosody");
+module:add_identity("pubsub", "pep", "pep", module:get_option_string("name", "Prosody"));
 module:add_feature("http://jabber.org/protocol/pubsub#publish");
 
 local function subscription_presence(user_bare, recipient)