All pastes #801785 Raw Edit

[XChat] GetPath

public python v1 · immutable
#801785 ·published 2007-11-29 16:17 UTC
rendered paste body
# -*- coding: iso-8859-15 -*-__module_name__ = "GetXChat Path"__module_version__ = "1.0"__module_description__ = "Affiche le répertoire de config d'XChat"__module_author__ = "Xn - dev@0x586e.info"import xchatdef getpath_cb(word,word_eol,userdata):    xchat.prnt("Votre répertoire de configuration : " + xchat.get_info('xchatdir'))    return xchat.EAT_ALLxchat.hook_command('getpath',getpath_cb,help="Retourne le répertoire de config d'XChat")xchat.prnt("/* Tapez /getpath pour trouver votre répertoire de configuration */")