Advertisement
marlosgama

Untitled

Apr 3rd, 2020
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.22 KB | None | 0 0
  1.   def multi_accounts?(user, ip)
  2.     result = @clients.find { |client| client && client.user.casecmp(user).zero? }
  3.     if result && result.ip == ip
  4.       result.close_connection
  5.       result = false
  6.     end
  7.     result
  8.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement