Posted by Xauth on September Wed 26th 4:32 PM - Never Expires
download | new post
- #!/usr/bin/env python
- # By Jorge Pena jorgepblank@gmail.com
- # www.jorgepena.be
- import xchat
- __module_name__ = "XAuthorize"
- __module_version__ = "1.0"
- __module_description__ = "Profiled Authorization Script"
- def auth_cb(word, word_eol, userdata):
- if len(word) < 2:
- xchat.prnt("<XAUTH.PY> Second argument must be profile name!")
- elif word[1] == "freenode":
- xchat.command("nick mynick")
- xchat.command("msg nickserv identify mypass")
- elif word[1] == "codeblank":
- xchat.command("nick mynick")
- xchat.command("msg nickserv identify mypass")
- else:
- xchat.prnt("<XAUTH.PY> Non-existent profile specified.")
- return xchat.EAT_ALL
- if __name__ == "__main__":
- xchat.hook_command("auth", auth_cb, help="/auth <profile>")
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.