pony

Joinmsg

Jul 23rd, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #msgjoin on
  2. on *:text:!msgjoin *:#: {
  3. if ($nick isop $chan) {
  4. if ($2 == on) {
  5. set %joinmsgconf. [ $+ [ $network ] $+ ] . [ $+ [ $chan ] ] on
  6. msg $chan Joinmsg on.
  7. }
  8. if ($2 == off) {
  9. set %joinmsgconf. [ $+ [ $network ] $+ ] . [ $+ [ $chan ] ] off
  10. msg $chan Joinmsg off.
  11. }
  12. if ($2 == set) {
  13. set %joinmsgtext. [ $+ [ $network ] $+ ] . [ $+ [ $chan ] ] $3-
  14. msg $chan Joinmsg Has Been Set.
  15. }
  16. }
  17. else {
  18. msg $chan $nick - Only channel operators may use this command.
  19. }
  20. }
  21.  
  22. on !*:JOIN:#: {
  23. If (JL69 iswm $nick) goto hahe
  24. if ( %joinmsgconf. [ $+ [ $network ] $+ ] . [ $+ [ $chan ] ] == on ) {
  25. set %joinmsgnick $nick
  26. msg $chan %joinmsgnick %joinmsgtext. [ $+ [ $network ] $+ ] . [ $+ [ $chan ] ]
  27. }
  28. hahe:
  29. halt
  30. }
  31. #msgjoin end
Advertisement
Add Comment
Please, Sign In to add comment