Advertisement
rarda

service 2.1

Nov 11th, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1.  
  2.  
  3. ################################################################
  4.  
  5. # This is the second revision of the DalServ Script.
  6.  
  7. # This script is released due to request, i get alot of
  8.  
  9. # mails each day from people that are using the old DalServ
  10.  
  11. # script but want multi chan support, so here it is.
  12.  
  13. # If for some strange reason you want to contact me you'll
  14.  
  15. # find me in #Landskrona- and sometimes in #eggdrop on dalnet.
  16.  
  17. # or you can mail me on andreas@stehn.com
  18.  
  19. ################################################################
  20.  
  21.  
  22.  
  23. # Configuration
  24.  
  25. # Set your eggdrops nickserv pass on the line below
  26.  
  27.  
  28.  
  29. set nickpass "yourleetnickpass"
  30.  
  31.  
  32.  
  33. # No need to edit these if you are on DALnet
  34.  
  35.  
  36.  
  37. set nickserv "nickserv@services.dal.net"
  38.  
  39. set chanserv "chanserv@services.dal.net"
  40.  
  41. set memoserv "memoserv@services.dal.net"
  42.  
  43. set scriptver "DalServ 2.1 By Diktatorn"
  44.  
  45.  
  46.  
  47. # End of Configuration
  48.  
  49.  
  50.  
  51. bind notc - "*This nick is owned by someone else*" ident_nickserv
  52.  
  53. bind notc - "*Password accepted for*" op_chanserv
  54.  
  55. bind notc - "*You have*" rm_memos
  56.  
  57.  
  58.  
  59. bind pub o !identify man_ident
  60.  
  61. bind dcc o identify dcc_identify
  62.  
  63. bind ctcp o ident ident_nickserv
  64.  
  65. bind ctcp o services serv_ver
  66.  
  67.  
  68.  
  69. proc ident_nickserv { nick uhost hand args } {
  70.  
  71.  global botnick nickpass nickserv
  72.  
  73.     putlog "\002Catched notice\002 from \002$nickserv\002"
  74.  
  75.     putserv "PRIVMSG $nickserv :identify $nickpass"
  76.  
  77.     putlog "Trying to Negotiate With $nickserv"
  78.  
  79.   }
  80.  
  81.  
  82.  
  83. proc man_ident { nick uhost hand args } {
  84.  
  85.  global botnick nickpass nickserv
  86.  
  87.  putserv "PRIVMSG $nickserv :identify $nickpass"
  88.  
  89.       }
  90.  
  91.  
  92.  
  93. proc dcc_identify { hand idx mascara } {
  94.  
  95.  global nickserv botnick nickpass
  96.  
  97.  putserv "PRIVMSG $nickserv :identify $nickpass"
  98.  
  99.  }
  100.  
  101.  
  102.  
  103. proc op_chanserv { nick uhost hand args } {
  104.  
  105.    global botnick chanserv channame
  106.  
  107.      putlog "\002Catched Notice\002 from \002$chanserv\002"
  108.  
  109.      foreach channame [channels] {
  110.  
  111.      putserv "PRIVMSG $chanserv :OP $channame $botnick" }
  112.  
  113.      putlog "\002Trying to gain ops\002 in \002$channame\002 from \002$chanserv\002"
  114.  
  115. }
  116.  
  117.  
  118.  
  119. proc rm_memos { nick uhost hand args } {
  120.  
  121.    global botnick memoserv
  122.  
  123.      putlog "\002Catched Memo Notice\002 from \002$memoserv\002"
  124.  
  125.      putserv "PRIVMSG $memoserv :DEL ALL"
  126.  
  127.      putlog "\002Trying to remove memos...\002"
  128.  
  129. }
  130.  
  131.  
  132.  
  133. proc serv_ver { nick uhost hand args } {
  134.  
  135.  global scriptver
  136.  
  137.  putserv "NOTICE $nick :\002$scriptver present\002"
  138.  
  139.  return 1
  140.  
  141.     }
  142.  
  143.  
  144.  
  145. putlog "TCL Loaded: \002$scriptver\002"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement