Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-01-10 02:06:47 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog ircd/s_user.c
Log message:
Do not send +r usermode to auth-on-connect users.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.60 ircu2.10/ChangeLog:1.710.2.61
--- ircu2.10/ChangeLog:1.710.2.60 Mon Jan 9 17:23:28 2006
+++ ircu2.10/ChangeLog Mon Jan 9 18:06:36 2006
@@ -1,5 +1,10 @@
2006-01-09 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/s_user.c (register_user): Do not send +r flag to user when
+ they first connect.
+
+2006-01-09 Michael Poole <[EMAIL PROTECTED]>
+
* include/ircd_features.h (FEAT_ZANNELS): Actually, put it back.
* ircd/ircd_features.c (FEAT_ZANNELS): Likewise.
Index: ircu2.10/ircd/s_user.c
diff -u ircu2.10/ircd/s_user.c:1.99 ircu2.10/ircd/s_user.c:1.99.2.1
--- ircu2.10/ircd/s_user.c:1.99 Tue Aug 16 18:57:03 2005
+++ ircu2.10/ircd/s_user.c Mon Jan 9 18:06:36 2006
@@ -22,7 +22,7 @@
*/
/** @file
* @brief Miscellaneous user-related helper functions.
- * @version $Id: s_user.c,v 1.99 2005/08/17 01:57:03 entrope Exp $
+ * @version $Id: s_user.c,v 1.99.2.1 2006/01/10 02:06:36 entrope Exp $
*/
#include "config.h"
@@ -690,6 +690,13 @@
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));
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches