git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1609
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2006-01-09 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_user.c (register_user): Do not send +r flag to user when
+ they first connect.
+
2006-01-09 Michael Poole <mdpoole@troilus.org>
* include/ircd_features.h (FEAT_ZANNELS): Actually, put it back.
2006-01-09 Michael Poole <mdpoole@troilus.org>
* include/ircd_features.h (FEAT_ZANNELS): Actually, put it back.
if (MyUser(sptr))
{
static struct Flags flags; /* automatically initialized to zeros */
if (MyUser(sptr))
{
static struct Flags flags; /* automatically initialized to zeros */
+ /* To avoid sending +r to the client due to auth-on-connect, set
+ * the "old" FLAG_ACCOUNT bit to match the client's value.
+ */
+ if (IsAccount(cptr))
+ FlagSet(&flags, FLAG_ACCOUNT);
+ else
+ FlagClr(&flags, FLAG_ACCOUNT);
send_umode(cptr, sptr, &flags, ALL_UMODES);
if ((cli_snomask(sptr) != SNO_DEFAULT) && HasFlag(sptr, FLAG_SERVNOTICE))
send_reply(sptr, RPL_SNOMASK, cli_snomask(sptr), cli_snomask(sptr));
send_umode(cptr, sptr, &flags, ALL_UMODES);
if ((cli_snomask(sptr) != SNO_DEFAULT) && HasFlag(sptr, FLAG_SERVNOTICE))
send_reply(sptr, RPL_SNOMASK, cli_snomask(sptr), cli_snomask(sptr));