mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 19:56:21 +00: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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user