From 65b8d06c7108b31553045e62f83ad146d643945b Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 14 Feb 2012 23:14:42 +0100 Subject: [PATCH] Do not send unchanged away messages to other users via away-notify. --- modules/m_away.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/m_away.c b/modules/m_away.c index 9fba635d..9a84ba24 100644 --- a/modules/m_away.c +++ b/modules/m_away.c @@ -100,14 +100,18 @@ m_away(struct Client *client_p, struct Client *source_p, int parc, const char *p rb_strlcpy(source_p->user->away, parv[1], AWAYLEN); sendto_server(client_p, NULL, CAP_TS6, NOCAPS, ":%s AWAY :%s", use_id(source_p), source_p->user->away); + sendto_common_channels_local_butone(source_p, + CLICAP_AWAY_NOTIFY, + ":%s!%s@%s AWAY :%s", + source_p->name, + source_p->username, + source_p->host, + source_p->user->away); } if(MyConnect(source_p)) sendto_one_numeric(source_p, RPL_NOWAWAY, form_str(RPL_NOWAWAY)); - sendto_common_channels_local_butone(source_p, CLICAP_AWAY_NOTIFY, ":%s!%s@%s AWAY :%s", - source_p->name, source_p->username, source_p->host, - source_p->user->away); return 0; }