]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
The away-notify CAP did not send AWAY status upon join, which is required.
authorBram Matthys <redacted>
Sat, 15 Sep 2018 06:46:18 +0000 (08:46 +0200)
committerBram Matthys <redacted>
Sat, 15 Sep 2018 06:46:18 +0000 (08:46 +0200)
Reported by digitalcircuit in https://bugs.unrealircd.org/view.php?id=5144

src/modules/m_join.c

index 131bd61805c1665d1388d854c77aec924d8f303e..ddc1af0fbca7463f442ebb1911b77b016dbb1f9d 100644 (file)
@@ -208,6 +208,12 @@ void _send_join_to_local_users(aClient *sptr, aChannel *chptr)
                        sendbufto_one(acptr, exjoinbuf, 0);
                else
                        sendbufto_one(acptr, joinbuf, 0);
+
+               if (sptr->user->away && (acptr->local->proto & PROTO_AWAY_NOTIFY))
+               {
+                       sendto_one(acptr, ":%s!%s@%s AWAY :%s",
+                                  sptr->name, sptr->user->username, GetHost(sptr), sptr->user->away);
+               }
        }
 }