This module insert custom avatar in front of nicks speaking through IRC.
It has also been designed to work with the bitlbee gateway (probably)
out of the box.

To use is, just load this module, for instance:

  (load-file "/path/to/erc-avatars.el")

ERC avatars will try to match nicks with filenames in the
erc-avatars-dir path, removing common decoration (leading/trailing
underscores or backquotes).  I.e. benj.png will match "_benj_" or
"BeNj``".

Additionally, configuration can be made through the erc-avatar-list
customizable variable in the same manner.

The following will associate <erc-avatars-dirs>/benj.png to "benj",
"_benj_", "bEnj[work]", "moi" or any other combination.  Also, del.png
will be associated to "del", "ailee" and the like.

  (setq erc-avatars-list '(("benj.png" "benj.*" "moi")
                            "del.png" "del" "ailee"))

Code included as an attachement.

-- 
* Benjamin Drieu <[email protected]> - http://www.april.org/
* Soutenez le logiciel libre, rejoignez l'April
  http://www.april.org/association/campagne-adhesion/
* La comptabilité personnelle libre pour tous - http://grisbi.org/

Attachment: erc-avatars.el
Description: application/emacs-lisp

_______________________________________________
gnu-emacs-sources mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Reply via email to