Module: ngircd.git Branch: master Commit: 3dc3a035386789852ba5a9fbc22b9b3c2793f0b0 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=3dc3a...
Author: Alexander Barton alex@barton.de Date: Mon Aug 1 21:10:16 2011 +0200
Infom clients when other servers change their user modes
---
src/ngircd/irc-mode.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/ngircd/irc-mode.c b/src/ngircd/irc-mode.c index 2cc60f4..1222bc5 100644 --- a/src/ngircd/irc-mode.c +++ b/src/ngircd/irc-mode.c @@ -271,6 +271,14 @@ client_exit:
if (Client_Type(Client) == CLIENT_SERVER) { /* 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, "MODE %s :%s", Client_ID(Target),