Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Wed, 27 Mar 2002 19:46:13 +0000 (19:46 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Wed, 27 Mar 2002 19:46:13 +0000 (19:46 +0000)
Log message:

Invalidate the user's old sendq when he /oper's up, so that the new sendq
is retrieved from the Y-line associated with the O-line.

(pull-up from u2_10_11 branch)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@687 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_oper.c

index 7a44c372324fe9f4d77cc70f420769e06515bf5f..cc43a8c0f5d1795f6380aa59a85667ea3cb26f41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-27  Kevin L Mitchell  <klmitch@mit.edu>
+
+       * ircd/m_oper.c (m_oper): clear the new oper's sendq so it gets
+       inherited from the class associated with the O-line
+
 2002-03-25  Kevin L Mitchell  <klmitch@mit.edu>
 
        * ircd/s_user.c (set_nick_name): invalidate all ban valid caching
index c6986eef6ef3b206d254aa564582282b3929f793..767b52da0ac0f6810f42092bb767c37f7167facb 100644 (file)
@@ -180,6 +180,7 @@ int m_oper(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 
     set_snomask(sptr, SNO_OPERDEFAULT, SNO_ADD);
     client_set_privs(sptr);
+    cli_max_sendq(sptr) = 0; /* Get the sendq from the oper's class */
     send_umode_out(cptr, sptr, old_mode, HasPriv(sptr, PRIV_PROPAGATE));
     send_reply(sptr, RPL_YOUREOPER);