devilhorns pushed a commit to branch master. http://git.enlightenment.org/apps/express.git/commit/?id=b84c4fd9941cacdfc3322a47493b065e3588688a
commit b84c4fd9941cacdfc3322a47493b065e3588688a Author: Christopher Michael <devilho...@comcast.net> Date: Fri Feb 12 15:35:13 2021 -0500 express: If we cannot find a channel to display a message, just use Status channel --- src/bin/callbacks.c | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/src/bin/callbacks.c b/src/bin/callbacks.c index adc5221..0211634 100644 --- a/src/bin/callbacks.c +++ b/src/bin/callbacks.c @@ -121,8 +121,7 @@ _callback_channel_notice(Express_Network *net EINA_UNUSED, const char *event EIN if (!(chl = _window_channel_find("Status"))) { ERR("Could not find channel with server name: %s", source); - if (!(chl = _window_channel_find("Status"))) - chl = _window_channel_active_get(); + chl = _window_channel_active_get(); } } else @@ -339,26 +338,18 @@ _callback_user_private(Express_Network *net, const char *event EINA_UNUSED, cons { Channel * chl = NULL; - DBG("User Private %s", params[0]); - DBG("\tCount: %d", count); - DBG("\tUser: %s", source); - DBG("\tMessage:"); - DBG("\t%s", params[1]); // message - DBG("\t%s", params[2]); - DBG("\t%s", params[3]); + /* DBG("User Private %s", params[0]); */ + /* DBG("\tCount: %d", count); */ + /* DBG("\tUser: %s", source); */ + /* DBG("\tMessage:"); */ + /* DBG("\t%s", params[1]); */ + /* DBG("\t%s", params[2]); */ + /* DBG("\t%s", params[3]); */ if (!(chl = _window_channel_find(source))) { - Express_Server *srv; - - if ((srv = express_network_server_connected_get(net))) - { - const char *srv_name = NULL; - - srv_name = express_network_server_realname_get(srv); - chl = _window_channel_create(net, source, srv_name); - if (!chl) return; - } + if (!(chl = _window_channel_find("Status"))) + return; } _channel_text_append(chl, source, params[1], --