Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.57 KB | None | 0 0
  1. proc grabNames {chan} {
  2.     return; #command to send to the server: NAMES $chan
  3. }
  4.  
  5. proc isOP {chan nick} {
  6.     set lnames grabNames{$chan};            #grab our names to search through
  7.     set search *@;                          #start of the search string
  8.     append search $nick *;                  #finish the search string: "*@nickname*"
  9.     return string match $search $lnames;    #return true or false if the nick is an OP
  10. }
  11.  
  12.  
  13. #Format:
  14. #NAMES #spiritclan
  15. #:irc.toribash.com 353 voxb @ #spiritclan :voxb @Vox isxiz
  16. #:irc.toribash.com 366 voxb #spiritclan :End of /NAMES list.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement