diff options
Diffstat (limited to 'src/node_mb.erl')
-rw-r--r-- | src/node_mb.erl | 57 |
1 files changed, 30 insertions, 27 deletions
diff --git a/src/node_mb.erl b/src/node_mb.erl index e48fd7967..1213805c4 100644 --- a/src/node_mb.erl +++ b/src/node_mb.erl @@ -1,43 +1,46 @@ -%%% ==================================================================== -%%% ``The contents of this file are subject to the Erlang Public License, -%%% Version 1.1, (the "License"); you may not use this file except in -%%% compliance with the License. You should have received a copy of the -%%% Erlang Public License along with this software. If not, it can be -%%% retrieved via the world wide web at http://www.erlang.org/. +%%%---------------------------------------------------------------------- +%%% File : node_mb.erl +%%% Author : Eric Cestari <ecestari@process-one.net> +%%% Purpose : PEP microglobing experimentation +%%% Created : 25 Sep 2008 by Eric Cestari <ecestari@process-one.net> %%% %%% -%%% Software distributed under the License is distributed on an "AS IS" -%%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See -%%% the License for the specific language governing rights and limitations -%%% under the License. +%%% ejabberd, Copyright (C) 2002-2016 ProcessOne %%% +%%% This program is free software; you can redistribute it and/or +%%% modify it under the terms of the GNU General Public License as +%%% published by the Free Software Foundation; either version 2 of the +%%% License, or (at your option) any later version. %%% -%%% The Initial Developer of the Original Code is ProcessOne. -%%% Portions created by ProcessOne are Copyright 2006-2015, ProcessOne -%%% All Rights Reserved.'' -%%% This software is copyright 2006-2015, ProcessOne. +%%% This program is distributed in the hope that it will be useful, +%%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +%%% General Public License for more details. %%% -%%% @copyright 2006-2015 ProcessOne -%%% @author Eric Cestari <eric@ohmforce.com> -%%% @version {@vsn}, {@date} {@time} -%%% @end -%%% ==================================================================== +%%% You should have received a copy of the GNU General Public License along +%%% with this program; if not, write to the Free Software Foundation, Inc., +%%% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +%%% +%%%---------------------------------------------------------------------- -module(node_mb). -behaviour(gen_pubsub_node). --author('eric@ohmforce.com'). +-author('ecestari@process-one.net'). -include("pubsub.hrl"). -include("jlib.hrl"). %%% @doc The module <strong>{@module}</strong> is the pep microblog PubSub plugin. -%%% <p> To be used, mod_pubsub must be configured : -%%% {mod_pubsub, [ % requires mod_caps -%%% {access_createnode, pubsub_createnode}, -%%% {plugins, ["default", "pep","mb"]}, -%%% {pep_mapping, [{"urn:xmpp:microblog", "mb"}]} -%%% ]}, -%%% </p> +%%% <p>To be used, mod_pubsub must be configured:<pre> +%%% mod_pubsub: +%%% access_createnode: pubsub_createnode +%%% ignore_pep_from_offline: false +%%% plugins: +%%% - "flat" +%%% - "pep" # Requires mod_caps. +%%% pep_mapping: +%%% "urn:xmpp:microblog:0": "mb" +%%% </pre></p> %%% <p>PubSub plugin nodes are using the {@link gen_pubsub_node} behaviour.</p> -export([init/3, terminate/2, options/0, features/0, |