Cacao7w7

Untitled

Jun 27th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. # esta tcl esta configurada para DALnet pero tambien puede usarce para otras redes
  2. # solo cambia el dominio o busca esta seccion "*.dal.net" y quieres usar la tcl en hispano solo cambia asi
  3. # ejemplo si estas en hispano dejalo asi "*-hispano.org"
  4. # y asi sucesivamente para otras redes donde quieras que funciona la tcl solo reemplaza esa corta linea
  5.  
  6. bind raw - QUIT detect:netsplit
  7.  
  8. proc detect:netsplit {from key arg} {
  9. global netsplit_detected
  10.  
  11. if {[info exists netsplit_detected]} { return 0 }
  12.  
  13. set arg [string trimleft [stripcodes bcruag $arg] :]
  14. if {[string equal "Quit:" [string range $arg 0 4]]} {return 0}
  15.  
  16. if {![regexp -- {^([[:alnum:][:punct:]]+)[[:space:]]([[:alnum:][:punct:]]+)$} $arg _arg server1 server2]} {return 0}
  17.  
  18. if {[string match "*.chathispano.com" $server1] && [string match "*.chathispano.com" $server2]} {
  19. foreach chan [channels] {
  20. putquick "NOTICE $chan :Se Ha Detectado NetSplit Desconectado Servicios: $server1 just split from $server2" -next
  21. }
  22. set netsplit_detected 1
  23. utimer 20 [list do:netsplit:unlock]
  24. }
  25. }
Add Comment
Please, Sign In to add comment