Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Latest commit

 

History

History
38 lines (23 loc) · 1003 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 1003 Bytes

mod_http_offline

Ejabberd module to send a post if users was offline.

This module is based on Adam Duke mod_interact, Jason Rowe's post and a lot of pieces of code and tips from the web to adapts to work with Ejabber 14.12.

Installing

Clone this repository:

git clone [email protected]:raelmax/mod_http_offline.git

Change the '[your-url-here]' string in mod_http_offline.erl file.

To compile this I downloaded the code at my home directory and run:

	erlc -I /lib/ejabberd/include/ -pa ~/ejabberd/deps/lager/ebin/ mod_http_offline.erl

Move the .beam file to ejabberd ebin folder:

	sudo mv mod_http_offline.beam /lib/ejabberd/ebin/ 

Add "mod_http_offline" to your ejabberd.yml config at "modules" section:

    mod_http_offline: {}

Restart ejabberd! \o/

This is tested with ejabberd 14.12 and ubuntu server 14.04.