This repository was archived by the owner on Jun 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ extern int h_conf_read_end;
3636extern int h_outbound_msgbuf ;
3737extern int h_rehash ;
3838extern int h_cap_change ;
39+ extern int h_sendq_cleared ;
3940
4041void init_hook (void );
4142int register_hook (const char * name );
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ int h_conf_read_end;
6565int h_outbound_msgbuf ;
6666int h_rehash ;
6767int h_cap_change ;
68+ int h_sendq_cleared ;
6869
6970void
7071init_hook (void )
@@ -90,6 +91,7 @@ init_hook(void)
9091 h_outbound_msgbuf = register_hook ("outbound_msgbuf" );
9192 h_rehash = register_hook ("rehash" );
9293 h_cap_change = register_hook ("cap_change" );
94+ h_sendq_cleared = register_hook ("sendq_cleared" );
9395}
9496
9597/* grow_hooktable()
Original file line number Diff line number Diff line change @@ -182,7 +182,12 @@ send_queued(struct Client *to)
182182 send_queued_write , to );
183183 }
184184 else
185+ {
186+ hook_data_client hdata ;
187+ hdata .client = to ;
185188 ClearFlush (to );
189+ call_hook (h_sendq_cleared , & hdata );
190+ }
186191}
187192
188193void
You can’t perform that action at this time.
0 commit comments