mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 10:06:21 +00:00
@@ -335,7 +335,7 @@ ui_incoming_msg(const char * const from, const char * const message,
|
|||||||
if (strncmp(message, "/me ", 4) == 0) {
|
if (strncmp(message, "/me ", 4) == 0) {
|
||||||
wattron(console->win, COLOUR_THEM);
|
wattron(console->win, COLOUR_THEM);
|
||||||
wprintw(console->win, "*%s ", display_from);
|
wprintw(console->win, "*%s ", display_from);
|
||||||
wprintw(console->win, "%s", message + 4);
|
waddstr(console->win, message + 4);
|
||||||
wprintw(console->win, "\n");
|
wprintw(console->win, "\n");
|
||||||
wattroff(console->win, COLOUR_THEM);
|
wattroff(console->win, COLOUR_THEM);
|
||||||
} else {
|
} else {
|
||||||
@@ -372,7 +372,7 @@ ui_incoming_msg(const char * const from, const char * const message,
|
|||||||
if (strncmp(message, "/me ", 4) == 0) {
|
if (strncmp(message, "/me ", 4) == 0) {
|
||||||
wattron(window->win, COLOUR_THEM);
|
wattron(window->win, COLOUR_THEM);
|
||||||
wprintw(window->win, "*%s ", display_from);
|
wprintw(window->win, "*%s ", display_from);
|
||||||
wprintw(window->win, "%s", message + 4);
|
waddstr(window->win, message + 4);
|
||||||
wprintw(window->win, "\n");
|
wprintw(window->win, "\n");
|
||||||
wattroff(window->win, COLOUR_THEM);
|
wattroff(window->win, COLOUR_THEM);
|
||||||
} else {
|
} else {
|
||||||
@@ -416,7 +416,7 @@ ui_incoming_msg(const char * const from, const char * const message,
|
|||||||
if (strncmp(message, "/me ", 4) == 0) {
|
if (strncmp(message, "/me ", 4) == 0) {
|
||||||
wattron(window->win, COLOUR_THEM);
|
wattron(window->win, COLOUR_THEM);
|
||||||
wprintw(window->win, "*%s ", display_from);
|
wprintw(window->win, "*%s ", display_from);
|
||||||
wprintw(window->win, "%s", message + 4);
|
waddstr(window->win, message + 4);
|
||||||
wprintw(window->win, "\n");
|
wprintw(window->win, "\n");
|
||||||
wattroff(window->win, COLOUR_THEM);
|
wattroff(window->win, COLOUR_THEM);
|
||||||
} else {
|
} else {
|
||||||
@@ -1172,7 +1172,7 @@ ui_room_history(const char * const room_jid, const char * const nick,
|
|||||||
|
|
||||||
if (strncmp(message, "/me ", 4) == 0) {
|
if (strncmp(message, "/me ", 4) == 0) {
|
||||||
wprintw(win, "*%s ", nick);
|
wprintw(win, "*%s ", nick);
|
||||||
wprintw(win, "%s", message + 4);
|
waddstr(win, message + 4);
|
||||||
wprintw(win, "\n");
|
wprintw(win, "\n");
|
||||||
} else {
|
} else {
|
||||||
wprintw(win, "%s: ", nick);
|
wprintw(win, "%s: ", nick);
|
||||||
@@ -1195,7 +1195,7 @@ ui_room_message(const char * const room_jid, const char * const nick,
|
|||||||
if (strncmp(message, "/me ", 4) == 0) {
|
if (strncmp(message, "/me ", 4) == 0) {
|
||||||
wattron(window->win, COLOUR_THEM);
|
wattron(window->win, COLOUR_THEM);
|
||||||
wprintw(window->win, "*%s ", nick);
|
wprintw(window->win, "*%s ", nick);
|
||||||
wprintw(window->win, "%s", message + 4);
|
waddstr(window->win, message + 4);
|
||||||
wprintw(window->win, "\n");
|
wprintw(window->win, "\n");
|
||||||
wattroff(window->win, COLOUR_THEM);
|
wattroff(window->win, COLOUR_THEM);
|
||||||
} else {
|
} else {
|
||||||
@@ -1207,7 +1207,7 @@ ui_room_message(const char * const room_jid, const char * const nick,
|
|||||||
if (strncmp(message, "/me ", 4) == 0) {
|
if (strncmp(message, "/me ", 4) == 0) {
|
||||||
wattron(window->win, COLOUR_ME);
|
wattron(window->win, COLOUR_ME);
|
||||||
wprintw(window->win, "*%s ", nick);
|
wprintw(window->win, "*%s ", nick);
|
||||||
wprintw(window->win, "%s", message + 4);
|
waddstr(window->win, message + 4);
|
||||||
wprintw(window->win, "\n");
|
wprintw(window->win, "\n");
|
||||||
wattroff(window->win, COLOUR_ME);
|
wattroff(window->win, COLOUR_ME);
|
||||||
} else {
|
} else {
|
||||||
@@ -1456,7 +1456,8 @@ _win_show_user(WINDOW *win, const char * const user, const int colour)
|
|||||||
static void
|
static void
|
||||||
_win_show_message(WINDOW *win, const char * const message)
|
_win_show_message(WINDOW *win, const char * const message)
|
||||||
{
|
{
|
||||||
wprintw(win, "%s\n", message);
|
waddstr(win, message);
|
||||||
|
wprintw(win, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@@ -395,6 +395,5 @@ _chat_message_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
|||||||
free(jid);
|
free(jid);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user