Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. >>> affils.tcl
  2.  
  3. ##############################################################################
  4. # affils.tcl 1.0 by PietruH #
  5. # Change !affils below to whatever you want the trigger the script #
  6. # with. #
  7. # If affils.sh is not located in /glftpd/bin/, then change the path #
  8. # to 'set binary' below. #
  9. # affils.sh and affils text must be in one direction #
  10. ##############################################################################
  11.  
  12.  
  13. bind pub - !affils affils
  14.  
  15. proc affils {nick uhost handle chan arg} {
  16. set binary {/glftpd/bin/affils.sh}
  17. set section [lindex $arg 0]
  18. foreach line [split [exec $binary] "\n"] {
  19. putquick "PRIVMSG $chan :$line"
  20. }
  21. }
  22.  
  23.  
  24. putlog "affils.tcl 1.0 by PietruH loaded"
  25.  
  26. >>> affils.sh
  27.  
  28. #by PietruH (change path to affils.txt file)
  29. cat /glftpd/site/_STAFF/text/affils.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement