]> jfr.im git - irc/quakenet/snircd-patchqueue.git/commitdiff
welcome: add protocol violation for invalid message number from server
authorwiebe <redacted>
Sat, 3 Apr 2010 14:12:29 +0000 (16:12 +0200)
committerwiebe <redacted>
Sat, 3 Apr 2010 14:12:29 +0000 (16:12 +0200)
welcome.patch

index c9eb7c39956e0368f784c56f537e017ac5c5fe65..caed87308e236fc653f33d2df3b4f670a6bd5149 100644 (file)
@@ -753,7 +753,7 @@ diff -r 3a7d0a771452 ircd/s_user.c
 diff -r 3a7d0a771452 ircd/welcome.c
 --- /dev/null
 +++ b/ircd/welcome.c
-@@ -0,0 +1,369 @@
+@@ -0,0 +1,371 @@
 +/*
 + * IRC - Internet Relay Chat, ircd/welcome.c
 + * Copyright (C) 1990 Jarkko Oikarinen and
@@ -862,7 +862,9 @@ diff -r 3a7d0a771452 ircd/welcome.c
 +    if (IsUser(sptr))
 +      sendcmdto_one(&me, CMD_NOTICE, sptr,
 +        "%C :WELCOME: Invalid message number %s - should between 1 and %d",
-+        sptr, name, WELCOME_MAX_ENTRIES); 
++        sptr, name, WELCOME_MAX_ENTRIES);
++    else 
++      protocol_violation(cptr, "WELCOME: Invalid message number %s from %C", name, sptr);
 +    return 0;
 +  }
 +