Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. 214 f = File.open("conf/admins.txt")
  2. 215 $admins = f.each_line {|line|}
  3. 216 f.close
  4.  
  5. [...]
  6.  
  7. 231 # Get the command issuer
  8. 232 stepone = $output[0].split('!')
  9. 233 steptwo = stepone[0].split(':')
  10. 234 $issuer = steptwo[1]
  11.  
  12. [...]
  13.  
  14. 270 command = $output[3].slice(1..-1)
  15. 271 if (command[0,1] == '!')
  16. 272 #if ($issuer.downcase == $owner.downcase)
  17. 273 if ($admins.include? $issuer.downcase)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement