Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2017
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. ## bot_identifyer04.tcl
  2. ##
  3. ## This is a bot identifyer script, for nickserv and chanserv security
  4. ## notices. Besides this, it allows users (with flag +o) to identify the
  5. ## bot on the NickServ, using the command .nickserv at the party line.
  6. ##
  7. ## For using it correctly, follow the instructions below and the other ones on
  8. ## the script.
  9. ##
  10. ## First of all, you have to create a new user on your bot to identify the
  11. ## Identification Service Provider. It can have any handle, but it has to have
  12. ## flags +fB. After this, you have to add the host mask for it, in the format
  13. ## *!user@host.domain or *!*@host.domain (it depends on your network). In our
  14. ## case, the user got like the following example:
  15. ##
  16. ## [01:11] <Buster_> .whois brasirc
  17. ## [01:11] <bot> [01:11] #Buster_# whois brasirc
  18. ## [01:11] <bot> HANDLE PASS NOTES FLAGS LAST
  19. ## [01:11] <bot> brasirc yes 0 fB never (nowhere )
  20. ## [01:11] <bot> HOSTS: *!services@brasirc.net
  21. ##
  22. ## We are not responsible for anything that can happens to your bot. So,
  23. ## good luck !!! :)
  24. ##
  25. ## NOTE: this script works on BrasIRC Network, and it maybe will not work
  26. ## correctly on another one.
  27. ##
  28. ## Please, report bugs and suggestions to one of the following addresses:
  29. ##
  30. ## GiZZmo <vivas@usa.net>
  31. ## Buster_ <ejr@infonet.com.br>
  32. ##
  33. ## Se voce nao entende ingles e quer um script traduzido ou uma ajuda com
  34. ## os scripts que voce possui, mande um e-mail para nos.
  35. ##
  36. ##
  37. ############################ CONFIGURE THIS ################################
  38. ## Follow the instructions to configure this script correctly.
  39.  
  40. ## This sets your channel name. Replace #lamest for your channel name.
  41. set channame "#lamest"
  42.  
  43. ## This sets your channel password. Replace xxxxxx for your channel password.
  44. set chanpass "xxxxxx"
  45.  
  46. ## This sets your nick password. Replace xxxxxxx for your nick password.
  47. set nickpass "xxxxxxx"
  48.  
  49. ## This sets your bot nick. Replace lamesbot for your bt nick.
  50. set eggnick "lamestbot"
  51.  
  52. ## You must comment the line below. :)
  53. die (Are you sure you've configured the script correctly mother fucker?) ( bot_identifyer.tcl )
  54.  
  55.  
  56. ################# YOU DON'T NEED TO EDIT THE SCRIPT BELOW #################
  57.  
  58. bind notc B "*denied." chanserv_sux
  59. bind notc B "*This nickname is registered and protected.*" nickserv_sux
  60.  
  61. proc chanserv_sux { nick uhost hand text } {
  62. global channame chanpass
  63. putserv "PRIVMSG chanserv :identify $channame $chanpass"
  64. putlog "Sending Identify to ChanServ"
  65. }
  66.  
  67. proc nickserv_sux { nick uhost hand text } {
  68. global botnick eggnick nickpass
  69. if { $botnick == "$eggnick" } {
  70. putserv "PRIVMSG nickserv :identify $nickpass"
  71. putlog "Sending Identify to NickServ"
  72. } else {
  73. putlog "$eggnick is using a nick owned by someone else"
  74. }
  75. }
  76.  
  77. bind dcc o nickserv nickserv
  78.  
  79. proc nickserv { hand idx mascara } {
  80. global nickpass
  81. putserv "PRIVMSG nickserv :identify $nickpass"
  82. }
  83.  
  84. putlog "Loading Bot_Identifyer Script, v0.4 -- By GiZZmo <vivas@usa.net> and Buster_ <ejr@infonet.com.br>"
  85.  
  86. ## SDG (Sergipe Development Group)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement