Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def multi_accounts?(user, ip)
- result = @clients.find { |client| client && client.user.casecmp(user).zero? }
- if result && result.ip == ip
- result.close_connection
- result = false
- end
- result
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement