/* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0x3F */
0, /* @ */
0, /* A */
- 0, /* B */
- 0, /* C */
+ UMODE_BOT, /* B */
+ UMODE_NOCTCP, /* C */
UMODE_DEAF, /* D */
0, /* E */
0, /* F */
UMODE_SERVICE, /* S */
0, /* T */
0, /* U */
- 0, /* V */
+ UMODE_NOINVITE, /* V */
0, /* W */
0, /* X */
0, /* Y */
/* 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);
hook_data_umode_changed hdata;
hook_data_client hdata2;
char sockhost[HOSTLEN];
+ struct ConfItem *aconf;
if(MyClient(source_p))
send_umode(source_p, source_p, 0, 0, ubuf);
hdata2.target = source_p;
call_hook(h_introduce_client, &hdata2);
+ /* Do all the auth::autojoin wizardry once we're connected */
+ if(MyConnect(source_p))
+ {
+ aconf = source_p->localClient->att_conf;
+
+ if(aconf->autojoin != NULL)
+ {
+ user_join(client_p, source_p, aconf->autojoin, NULL, 0);
+ }
+ }
+
return 0;
}
{
unsigned int old = source_p->umodes, oldsnomask = source_p->snomask;
hook_data_umode_changed hdata;
+ struct ConfItem *aconf;
SetOper(source_p);
sendto_one_notice(source_p, ":*** Oper privs are %s", oper_p->privset->privs);
send_oper_motd(source_p);
+ aconf = source_p->localClient->att_conf;
+
+ /* Do the auth::autojoin_opers wizardry here */
+ if(aconf->autojoin_opers != NULL)
+ {
+ /* opers should never be banned from the opers channel.
+ * Plus this is post-umode being set so you'll pass +I $o or +O.
+ * Hence why we're making this a normal clean join. --jdhore
+ */
+ user_join(&me, source_p, aconf->autojoin_opers, NULL, 0);
+ }
+
return (1);
}