mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 17:36:22 +00:00
editor: use status to check for being online
This commit is contained in:
@@ -9403,9 +9403,10 @@ cmd_change_password(ProfWin* window, const char* const command, gchar** args)
|
|||||||
gboolean
|
gboolean
|
||||||
cmd_editor(ProfWin* window, const char* const command, gchar** args)
|
cmd_editor(ProfWin* window, const char* const command, gchar** args)
|
||||||
{
|
{
|
||||||
xmpp_ctx_t* const ctx = connection_get_ctx();
|
jabber_conn_status_t conn_status = connection_get_status();
|
||||||
if (!ctx) {
|
|
||||||
log_debug("Editor: no connection");
|
if (conn_status != JABBER_CONNECTED) {
|
||||||
|
cons_show("You are currently not connected.");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user