1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Allow /editor while not connected

Since /editor can be used also for commands it doesn't make sense to
restrict it to only connected state.
This commit is contained in:
Paul Fertser 2022-04-12 11:37:35 +03:00
parent 180584656a
commit b00e74f3b8

View File

@ -9511,13 +9511,6 @@ cmd_change_password(ProfWin* window, const char* const command, gchar** args)
gboolean
cmd_editor(ProfWin* window, const char* const command, gchar** args)
{
jabber_conn_status_t conn_status = connection_get_status();
if (conn_status != JABBER_CONNECTED) {
cons_show("You are currently not connected.");
return TRUE;
}
gchar* message = NULL;
if (get_message_from_editor(NULL, &message)) {