Show message in private windows when user offline

This commit is contained in:
James Booth
2016-02-02 21:52:13 +00:00
parent f0837abf0a
commit 150015fa3d
7 changed files with 60 additions and 4 deletions

View File

@@ -220,6 +220,7 @@ win_create_private(const char *const fulljid)
new_win->fulljid = strdup(fulljid);
new_win->unread = 0;
new_win->notify = FALSE;
new_win->occupant_offline = FALSE;
new_win->memcheck = PROFPRIVATEWIN_MEMCHECK;
@@ -1098,7 +1099,7 @@ _win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim
}
}
if (strlen(from) > 0) {
if (from && strlen(from) > 0) {
if (flags & NO_ME) {
colour = theme_attrs(THEME_THEM);
}