SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
26
audio/opennap/patches/patch-privmsg_c
Normal file
26
audio/opennap/patches/patch-privmsg_c
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- privmsg.c.orig Sat Sep 22 00:54:13 2001
|
||||
+++ privmsg.c Tue Oct 16 23:02:48 2001
|
||||
@@ -348,7 +348,7 @@ HANDLER (privmsg)
|
||||
/* prevent DoS attack againt windows napster client */
|
||||
if (len - (pkt - ptr) > 180)
|
||||
{
|
||||
- log_message ("privmsg(): truncated %d byte message from %s", len,
|
||||
+ log_message ("privmsg: truncated %d byte message from %s", len,
|
||||
sender->nick);
|
||||
pkt[180] = 0;
|
||||
}
|
||||
@@ -385,6 +385,14 @@ HANDLER (privmsg)
|
||||
if (!user)
|
||||
{
|
||||
nosuchuser (con);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ if (gBlockWinMX > 0 &&
|
||||
+ !strncmp ("//WantQueue", pkt, sizeof("//WantQueue")-1))
|
||||
+ {
|
||||
+ if (sender->level < LEVEL_MODERATOR)
|
||||
+ discipline_user (sender);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue