Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ctcp_hook(word, word_eol, userdata):
- ctcptype = word[0]
- user = word[1]
- if ("BANME" in ctcptype.upper() or "OPME" in ctcptype.upper()) and "freenode" in hexchat.get_info("server") and user != "^v":
- if <some special check here>:
- send("cs op <channel> jacob1")
- hexchat.hook_timer(1000, ban_timer, ["+b", 614*1000, user, hexchat.get_info("server"), "<channel>"])
- hexchat.hook_timer(1000, kick_timer, [word[1], hexchat.get_info("server"), "<channel>", "Recieved a CTCP BANME from " + user])
- hexchat.hook_timer(1000, command_timer, ["cs deop <channel> jacob1", hexchat.get_info("server"), "<channel>"])
- elif get_user(word[1], hexchat.get_info("server"), "#powder"):
- do_ban("+b", 614*1000, user, hexchat.get_info("server"), "#powder")
- user_kick(word[1], hexchat.get_info("server"), "#powder", "Recieved a CTCP BANME from " + user)
Advertisement
Add Comment
Please, Sign In to add comment