patch-download_c 453 B

1234567891011121314151617
  1. $OpenBSD: patch-download_c,v 1.1 2002/08/10 01:14:04 naddy Exp $
  2. --- download.c.orig Sat Sep 22 00:54:13 2001
  3. +++ download.c Tue Oct 16 18:14:04 2001
  4. @@ -35,6 +35,12 @@ HANDLER (download)
  5. return;
  6. }
  7. + if (sender->level == LEVEL_LEECH)
  8. + {
  9. + send_user (sender, MSG_SERVER_NOSUCH, "permission denied: you are a leech");
  10. + return;
  11. + }
  12. +
  13. /* find the user to download from */
  14. user = hash_lookup (Users, av[0]);
  15. if (!user)