From: Kevin L. Mitchell Date: Wed, 27 Mar 2002 19:46:13 +0000 (+0000) Subject: Author: Kev X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=581793fed41c24fc05d042abbdc97637ff192139 Author: Kev 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 --- diff --git a/ChangeLog b/ChangeLog index 7a44c37..cc43a8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-03-27 Kevin L Mitchell + + * 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 * ircd/s_user.c (set_nick_name): invalidate all ban valid caching diff --git a/ircd/m_oper.c b/ircd/m_oper.c index c6986ee..767b52d 100644 --- a/ircd/m_oper.c +++ b/ircd/m_oper.c @@ -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);