Advertisement
rarda

services2.1.tcl

Nov 11th, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1.  
  2. ################################################################
  3. # This is the second revision of the DalServ Script.
  4. # This script is released due to request, i get alot of
  5. # mails each day from people that are using the old DalServ
  6. # script but want multi chan support, so here it is.
  7. # If for some strange reason you want to contact me you'll
  8. # find me in #Landskrona- and sometimes in #eggdrop on dalnet.
  9. # or you can mail me on andreas@stehn.com
  10. ################################################################
  11.  
  12. # Configuration
  13. # Set your eggdrops nickserv pass on the line below
  14.  
  15. set nickpass "yourleetnickpass"
  16.  
  17. # No need to edit these if you are on DALnet
  18.  
  19. set nickserv "nickserv@services.dal.net"
  20. set chanserv "chanserv@services.dal.net"
  21. set memoserv "memoserv@services.dal.net"
  22. set scriptver "DalServ 2.1 By Diktatorn"
  23.  
  24. # End of Configuration
  25.  
  26. bind notc - "*This nick is owned by someone else*" ident_nickserv
  27. bind notc - "*Password accepted for*" op_chanserv
  28. bind notc - "*You have*" rm_memos
  29.  
  30. bind pub o !identify man_ident
  31. bind dcc o identify dcc_identify
  32. bind ctcp o ident ident_nickserv
  33. bind ctcp o services serv_ver
  34.  
  35. proc ident_nickserv { nick uhost hand args } {
  36. global botnick nickpass nickserv
  37. putlog "\002Catched notice\002 from \002$nickserv\002"
  38. putserv "PRIVMSG $nickserv :identify $nickpass"
  39. putlog "Trying to Negotiate With $nickserv"
  40. }
  41.  
  42. proc man_ident { nick uhost hand args } {
  43. global botnick nickpass nickserv
  44. putserv "PRIVMSG $nickserv :identify $nickpass"
  45. }
  46.  
  47. proc dcc_identify { hand idx mascara } {
  48. global nickserv botnick nickpass
  49. putserv "PRIVMSG $nickserv :identify $nickpass"
  50. }
  51.  
  52. proc op_chanserv { nick uhost hand args } {
  53. global botnick chanserv channame
  54. putlog "\002Catched Notice\002 from \002$chanserv\002"
  55. foreach channame [channels] {
  56. putserv "PRIVMSG $chanserv :OP $channame $botnick" }
  57. putlog "\002Trying to gain ops\002 in \002$channame\002 from \002$chanserv\002"
  58. }
  59.  
  60. proc rm_memos { nick uhost hand args } {
  61. global botnick memoserv
  62. putlog "\002Catched Memo Notice\002 from \002$memoserv\002"
  63. putserv "PRIVMSG $memoserv :DEL ALL"
  64. putlog "\002Trying to remove memos...\002"
  65. }
  66.  
  67. proc serv_ver { nick uhost hand args } {
  68. global scriptver
  69. putserv "NOTICE $nick :\002$scriptver present\002"
  70. return 1
  71. }
  72.  
  73. putlog "TCL Loaded: \002$scriptver\002"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement