Advertisement
samuli

played.tcl

Nov 10th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ##################################
  2. # :: played.tcl v. 0.1 :: #
  3. ##################################
  4.  
  5.  
  6.  
  7. set mcitemid_oikat "o|o"
  8.  
  9.  
  10. set channel "#samuliweb"
  11.  
  12.  
  13. #####################################################################
  14.  
  15.  
  16.  
  17. bind pub - !played pub:played
  18.  
  19.  
  20.  
  21. proc itemid:checkchannel {channel} {
  22. foreach i $::channel {
  23. if {$i == "$channel"} { return 1 }
  24. }
  25. return 0
  26. }
  27.  
  28. # open data file
  29. set fp [open "somefile" r]
  30. set file_data [read $fp]
  31. close $fp
  32.  
  33. # Process data file
  34. set data [split $file_data "\n"]
  35. foreach line $data {
  36. }
  37.  
  38.  
  39. putlog "mcitemid.tcl Loaded"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement