SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
29
audio/opennap/patches/patch-browse_c
Normal file
29
audio/opennap/patches/patch-browse_c
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- browse.c.orig Sat Sep 22 00:54:13 2001
|
||||
+++ browse.c Tue Oct 16 18:14:04 2001
|
||||
@@ -87,6 +87,12 @@ HANDLER (browse)
|
||||
}
|
||||
ASSERT (validate_user (user));
|
||||
|
||||
+ if (sender->level == LEVEL_LEECH)
|
||||
+ {
|
||||
+ send_user (sender, MSG_SERVER_BROWSE_END, "%s 0", nick);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
if (pkt)
|
||||
{
|
||||
result = atoi (pkt);
|
||||
@@ -349,6 +355,13 @@ HANDLER (browse_direct)
|
||||
if (!user)
|
||||
{
|
||||
nosuchuser (con);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ if (sender->level == LEVEL_LEECH)
|
||||
+ {
|
||||
+ send_user(sender,MSG_SERVER_BROWSE_DIRECT_ERR,
|
||||
+ "%s \"permission denied: you are a leech\"", user->nick);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue