mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-02 08:36: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
|
gboolean
|
||||||
cmd_editor(ProfWin* window, const char* const command, gchar** args)
|
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;
|
gchar* message = NULL;
|
||||||
|
|
||||||
if (get_message_from_editor(NULL, &message)) {
|
if (get_message_from_editor(NULL, &message)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user