Infom clients when other servers change their user modes

This commit is contained in:
Alexander Barton 2011-08-01 21:10:16 +02:00
parent d692286d7a
commit 3dc3a03538
1 changed files with 8 additions and 0 deletions

View File

@ -271,6 +271,14 @@ client_exit:
if (Client_Type(Client) == CLIENT_SERVER) { if (Client_Type(Client) == CLIENT_SERVER) {
/* Forward modes to other servers */ /* Forward modes to other servers */
if (Client_Conn(Target) != NONE) {
/* Remote server (service?) changed modes
* for one of our clients. Inform it! */
IRC_WriteStrClientPrefix(Target, Origin,
"MODE %s :%s",
Client_ID(Target),
the_modes);
}
IRC_WriteStrServersPrefix(Client, Origin, IRC_WriteStrServersPrefix(Client, Origin,
"MODE %s :%s", "MODE %s :%s",
Client_ID(Target), Client_ID(Target),