modify calls to channel_text_append function and add a source/user
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
00bc2f0754
commit
2a85cde33d
|
@ -30,7 +30,7 @@ _callback_server_motd(Express_Network *net, const char *event, const char *sourc
|
|||
/* DBG("\t%s", params[1]); */
|
||||
|
||||
if (!(chl = _window_channel_server_find(source))) return;
|
||||
_channel_text_append(chl, params[1]);
|
||||
_channel_text_append(chl, NULL, params[1]);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -38,14 +38,15 @@ _callback_channel_message(Express_Network *net, const char *event, const char *s
|
|||
{
|
||||
Channel *chl = NULL;
|
||||
|
||||
/* DBG("Channel Message: %s", params[0]); */
|
||||
/* DBG("\tCount: %d", count); */
|
||||
/* DBG("\tUser: %s", source); */
|
||||
/* DBG("\tMessage:"); */
|
||||
/* DBG("\t%s", params[1]); */
|
||||
DBG("Channel Message: %s", params[0]);
|
||||
DBG("\tCount: %d", count);
|
||||
DBG("\tUser: %s", source);
|
||||
DBG("\tMessage:");
|
||||
DBG("\t%s", params[1]);
|
||||
|
||||
if (!(chl = _window_channel_find(params[0]))) return;
|
||||
_channel_text_append(chl, params[1]);
|
||||
|
||||
_channel_text_append(chl, source, params[1]);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -75,5 +76,5 @@ _callback_channel_notice(Express_Network *net, const char *event, const char *so
|
|||
}
|
||||
|
||||
if (!chl) return;
|
||||
_channel_text_append(chl, params[1]);
|
||||
_channel_text_append(chl, NULL, params[1]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue