mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Merge branch 'master' into openpgp
This commit is contained in:
commit
58b5e39b95
@ -1748,7 +1748,9 @@ ui_room_message(const char * const roomjid, const char * const nick,
|
||||
ProfMucWin *mucwin = wins_get_muc(roomjid);
|
||||
if (mucwin == NULL) {
|
||||
log_error("Room message received from %s, but no window open for %s", nick, roomjid);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
ProfWin *window = (ProfWin*) mucwin;
|
||||
int num = wins_get_num(window);
|
||||
char *my_nick = muc_nick(roomjid);
|
||||
@ -1772,11 +1774,9 @@ ui_room_message(const char * const roomjid, const char * const nick,
|
||||
status_bar_new(num);
|
||||
cons_show_incoming_message(nick, num);
|
||||
|
||||
if (strcmp(nick, my_nick) != 0) {
|
||||
if (prefs_get_boolean(PREF_FLASH)) {
|
||||
if (prefs_get_boolean(PREF_FLASH) && (strcmp(nick, my_nick) != 0)) {
|
||||
flash();
|
||||
}
|
||||
}
|
||||
|
||||
mucwin->unread++;
|
||||
}
|
||||
@ -1786,7 +1786,11 @@ ui_room_message(const char * const roomjid, const char * const nick,
|
||||
ui_index = 0;
|
||||
}
|
||||
|
||||
if (strcmp(nick, muc_nick(roomjid)) != 0) {
|
||||
// don't notify self messages
|
||||
if (strcmp(nick, my_nick) == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (prefs_get_boolean(PREF_BEEP)) {
|
||||
beep();
|
||||
}
|
||||
@ -1819,8 +1823,6 @@ ui_room_message(const char * const roomjid, const char * const nick,
|
||||
jid_destroy(jidp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user