#!/usr/bin/python
# -*- coding: utf-8 -*-
import xchat
__module_name__ = "pyid"
__module_version__ = "0.1"
__module_description__ = "Python module identify for freenode , /id nick password"
def id(word, word_eol, userdata):
if len(word) < 2:
print 'Usage : /id '
else:
if xchat.get_info("nick") == word[1]:
pass
else:
xchat.command('msg nickserv ghost '+word[1]+' '+word[2])
xchat.command('nick '+word[1])
xchat.command('msg nickserv identify '+word[2])
return xchat.EAT_ALL
xchat.hook_command("id", id, help="/id ")
il tu le fantôme si c n'est pas vous , change le (…)