]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/s_user.c
Add umode +V, which blocks invites to anyone with it set.
[irc/rqf/shadowircd.git] / src / s_user.c
index b774e901964cb465beefb92755162e7768ae0e10..1f81400459682a76293b2da488581c66bc5d70c8 100644 (file)
@@ -69,7 +69,7 @@ int user_modes[256] = {
        0,                      /* @ */
        0,                      /* A */
        0,                      /* B */
-       0,                      /* C */
+       UMODE_NOCTCP,   /* C */
        UMODE_DEAF,             /* D */
        0,                      /* E */
        0,                      /* F */
@@ -88,7 +88,7 @@ int user_modes[256] = {
        UMODE_SERVICE,          /* S */
        0,                      /* T */
        0,                      /* U */
-       0,                      /* V */
+       UMODE_NOINVITE,         /* V */
        0,                      /* W */
        0,                      /* X */
        0,                      /* Y */
@@ -561,7 +561,9 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
 
        /* they get a reduced limit */
        if(find_tgchange(source_p->sockhost))
-               USED_TARGETS(source_p) = 6;
+               source_p->localClient->targets_free = TGCHANGE_INITIAL_LOW;
+       else
+               source_p->localClient->targets_free = TGCHANGE_INITIAL;
 
        monitor_signon(source_p);
        user_welcome(source_p);