Fix: Part, Quit and Nick Rename messages, nick needs eina_stringshare

Summary:
As these nicks are compared in eina lists against the channels nick
lists these strings need to be eina stringsared to work correctly.

Reviewers: devilhorns

Differential Revision: https://phab.enlightenment.org/D2433
This commit is contained in:
Simon Lees 2015-04-28 09:19:30 -04:00 committed by Chris Michael
parent 8efe3c92e7
commit c99d082a92
2 changed files with 3 additions and 1 deletions

View File

@ -318,7 +318,7 @@ _callback_user_nick(Express_Network *net EINA_UNUSED, const char *event EINA_UNU
DBG("\t%s", params[2]);
DBG("\t%s", params[3]);
snprintf(buff, sizeof(buff), "%s is now known as %s", source, user);
snprintf(buff, sizeof(buff), "%s is now known as %s\r\n", source, user);
/* find all channels that this user is in */
channels = _window_channels_user_find(source);

View File

@ -78,6 +78,8 @@ _process_buffer(Express_Network *net, char *data, int length)
/* { */
/* CRI("Partial Prefix Message: %s", data); */
/* } */
if (prefix)
prefix = eina_stringshare_add(prefix);
/* parse out any 3-digit command numbers */
if ((isdigit(ptr[0]) && (isdigit(ptr[1])) && (isdigit(ptr[2]))))