From: Michael Poole Date: Tue, 10 Jan 2006 02:06:36 +0000 (+0000) Subject: Do not send +r usermode to auth-on-connect users. X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=02c54462e647994d8eecc675dfec5ddd9f23929c;p=ircu2.10.12-pk.git Do not send +r usermode to auth-on-connect users. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1609 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 641e62e..17b73b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-09 Michael Poole + + * ircd/s_user.c (register_user): Do not send +r flag to user when + they first connect. + 2006-01-09 Michael Poole * include/ircd_features.h (FEAT_ZANNELS): Actually, put it back. diff --git a/ircd/s_user.c b/ircd/s_user.c index 7d9faaf..d0a6217 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -690,6 +690,13 @@ int register_user(struct Client *cptr, struct Client *sptr, 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));