about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-06-05 10:03:44 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-06-05 10:05:12 +0200
commitce5a4ed77cb8e9912747a5450b43093fb2df65f5 (patch)
treef0fc8968bce2bd149e875c065e86029f473a187b /src
parentd53c477e4e2589e15267fe2b3de4bc59fe32aa3e (diff)
downloadprofani-tty-ce5a4ed77cb8e9912747a5450b43093fb2df65f5.tar.gz
Only show MUC subject on first connect
For #704 we don't show the room history upon reconnect.
Now we also don't show the room subject in the channel
upon re-established connection.
Diffstat (limited to 'src')
-rw-r--r--src/event/server_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 85c0e6ca..9c89a019 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -263,7 +263,7 @@ sv_ev_room_subject(const char *const room, const char *const nick, const char *c
 {
     muc_set_subject(room, subject);
     ProfMucWin *mucwin = wins_get_muc(room);
-    if (mucwin && muc_roster_complete(room)) {
+    if (mucwin && muc_roster_complete(room) && _success_connections_counter == 1) {
         mucwin_subject(mucwin, nick, subject);
     }
 }