Guest User

Untitled

a guest
Aug 29th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local USER='xx'
  2. local PASS='xx'
  3. local PORT=6668
  4. local HOST='localhost'
  5. local CHAN='#test'
  6.  
  7. read params
  8.  
  9. hash="`echo $params | sed 's/^.* \(.*\) .*/\1/'`"
  10. branch=`git branch --contains $hash `
  11. tail=`git log -1 --pretty=format:' - %H %cn: %s' --abbrev=150 $hash `
  12. msg="$branch$tail"
  13.  
  14. nc $HOST $PORT << EOF
  15. pass $PASS
  16. user $USER
  17. nick $USER
  18. privmsg $CHAN :$msg
  19. quit
  20. EOF
Add Comment
Please, Sign In to add comment