mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 11:46:21 +00:00
Add win_printf_line
This commit is contained in:
@@ -101,7 +101,7 @@ privwin_message_occupant_offline(ProfPrivateWin *privwin)
|
||||
{
|
||||
assert(privwin != NULL);
|
||||
|
||||
win_printf((ProfWin*)privwin, '-', 0, NULL, 0, THEME_ERROR, NULL, "Unable to send message, occupant no longer present in room.");
|
||||
win_printf_line((ProfWin*)privwin, THEME_ERROR, "Unable to send message, occupant no longer present in room.");
|
||||
}
|
||||
|
||||
void
|
||||
@@ -109,7 +109,7 @@ privwin_message_left_room(ProfPrivateWin *privwin)
|
||||
{
|
||||
assert(privwin != NULL);
|
||||
|
||||
win_printf((ProfWin*)privwin, '-', 0, NULL, 0, THEME_ERROR, NULL, "Unable to send message, you are no longer present in room.");
|
||||
win_printf_line((ProfWin*)privwin, THEME_ERROR, "Unable to send message, you are no longer present in room.");
|
||||
}
|
||||
|
||||
void
|
||||
@@ -119,7 +119,7 @@ privwin_occupant_offline(ProfPrivateWin *privwin)
|
||||
|
||||
privwin->occupant_offline = TRUE;
|
||||
Jid *jidp = jid_create(privwin->fulljid);
|
||||
win_printf((ProfWin*)privwin, '-', 0, NULL, 0, THEME_OFFLINE, NULL, "<- %s has left the room.", jidp->resourcepart);
|
||||
win_printf_line((ProfWin*)privwin, THEME_OFFLINE, "<- %s has left the room.", jidp->resourcepart);
|
||||
jid_destroy(jidp);
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ privwin_occupant_online(ProfPrivateWin *privwin)
|
||||
|
||||
privwin->occupant_offline = FALSE;
|
||||
Jid *jidp = jid_create(privwin->fulljid);
|
||||
win_printf((ProfWin*)privwin, '-', 0, NULL, 0, THEME_ONLINE, NULL, "-- %s has joined the room.", jidp->resourcepart);
|
||||
win_printf_line((ProfWin*)privwin, THEME_ONLINE, "-- %s has joined the room.", jidp->resourcepart);
|
||||
jid_destroy(jidp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user