modify text append function to accept a nick parameter also

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-12-16 14:26:18 -05:00
parent 7fd14b1b07
commit 00bc2f0754
2 changed files with 8 additions and 2 deletions

View File

@ -452,11 +452,17 @@ _channel_spacer_create(Channel *chl)
}
void
_channel_text_append(Channel *chl, const char *txt)
_channel_text_append(Channel *chl, const char *user, const char *txt)
{
/* fprintf(stderr, "Channel %s Append: %s", chl->name, txt); */
/* write buff to grid */
if (user)
{
_grid_text_append(chl->o_grid, user, strlen(user));
_grid_text_append(chl->o_grid, "\t", strlen("\t"));
}
_grid_text_append(chl->o_grid, txt, strlen(txt));
}

View File

@ -40,7 +40,7 @@ void _channel_unswallowed_set(Channel *chl, Eina_Bool swallowed);
void _channel_spacer_create(Channel *chl);
void _channel_text_append(Channel *chl, const char *txt);
void _channel_text_append(Channel *chl, const char *user, const char *txt);
void _channel_window_set(Channel *chl, Evas_Object *win);