Advertisement
Guest User

Untitled

a guest
Dec 25th, 2014
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. ##########################################################
  2. # Script: Auto identify # You are free to edit #
  3. # Version: 1.0.0 # this script as much #
  4. # Author: Alien # as you want as long #
  5. # Email: alien@irctools.org # as you keep my name #
  6. # Web: www.weaklink.ws/~alien/ # in credits. #
  7. ##########################################################
  8. # This script will automatically # Feel free to email #
  9. # identify your bot's nick to # me with suggestions #
  10. # nickserv. It works on all # or bugs. #
  11. # services versions with classic # #
  12. # command for identifying # #
  13. ##########################################################
  14.  
  15. ###
  16. # Configuration starts here
  17. ###
  18.  
  19. #
  20. # Bot's nickname password
  21.  
  22. set ident_pass "password"
  23.  
  24. #
  25. # Nickname of nick identifying service
  26. # In most cases it is NickServ
  27.  
  28. set ident_service "NickServ"
  29.  
  30. #
  31. # Command for identifying:
  32. # 0 - /msg NickServ IDENTIFY password
  33. # 1 - /msg NickServ IDENTIFY nick password
  34.  
  35. set ident_cmd "0"
  36.  
  37. #!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#
  38. # Configuration ends here #
  39. # You shouldn't edit anything below unless you know how. #
  40. #!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#
  41.  
  42. # The mighty bind
  43.  
  44. bind notc - "*nickname is owned by*" ident_id
  45.  
  46. # Now the proc
  47.  
  48. proc ident_id { nick host hand chan smt } {
  49. global botnick ident_pass ident_service ident_cmd
  50.  
  51. if {$nick == $ident_service} {
  52. if {$ident_cmd == "0"} {
  53. puthelp "PRIVMSG $ident_service :IDENTIFY $ident_pass
  54. putlog "ALI: Identifying to $ident_service as requested.
  55. }
  56. if {$ident_cmd == "1"} {
  57. puthelp "PRIVMSG $ident_service :IDENTIFY $botnick $ident_pass
  58. putlog "ALI: Identifying to $ident_service as requested.
  59. }
  60. }
  61. }
  62. # All done
  63.  
  64. putlog "ALI: Loaded Auto Identify TCL by Alien"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement