use channel 'active', not channel focus when writing to a channel

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-02-11 09:54:02 -05:00
parent 33013e3de3
commit 4008027e4f
1 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ _callback_server_notice(Express_Network *net EINA_UNUSED, const char *event EINA
/* DBG("\tMessage:"); */
/* DBG("\t%s", params[1]); */
if (!(chl = _window_channel_focused_get())) return;
if (!(chl = _window_channel_active_get())) return;
_channel_text_append(chl, NULL, params[1]);
}
@ -75,13 +75,13 @@ _callback_channel_notice(Express_Network *net EINA_UNUSED, const char *event EIN
{
ERR("Could not find channel with server name: %s", source);
if (!(chl = _window_channel_find("Default")))
chl = _window_channel_focused_get();
chl = _window_channel_active_get();
}
}
else
{
if (!(chl = _window_channel_find(params[0])))
chl = _window_channel_focused_get();
chl = _window_channel_active_get();
}
if (!chl) return;