mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 00:36:21 +00:00
xep-0084/avatar: add option to open avatar directly
Change: `/avatar me@somewhere.org` -> `/avatar get me@somewhere.org` New: `/avatar cmd feh` `/avatar open me@somewhere.org` Implement https://github.com/profanity-im/profanity/issues/1281
This commit is contained in:
@@ -1770,6 +1770,7 @@ _get_group(preference_t pref)
|
||||
case PREF_GRLOG:
|
||||
case PREF_LOG_ROTATE:
|
||||
case PREF_LOG_SHARED:
|
||||
case PREF_AVATAR_CMD:
|
||||
return PREF_GROUP_LOGGING;
|
||||
case PREF_AUTOAWAY_CHECK:
|
||||
case PREF_AUTOAWAY_MODE:
|
||||
@@ -2048,6 +2049,8 @@ _get_key(preference_t pref)
|
||||
return "correction.allow";
|
||||
case PREF_HISTORY_COLOR_MUC:
|
||||
return "history.muc.color";
|
||||
case PREF_AVATAR_CMD:
|
||||
return "avatar.cmd";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
@@ -2179,6 +2182,8 @@ _get_default_string(preference_t pref)
|
||||
return "false";
|
||||
case PREF_HISTORY_COLOR_MUC:
|
||||
return "unanimous";
|
||||
case PREF_AVATAR_CMD:
|
||||
return "xdg-open";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -166,6 +166,7 @@ typedef enum {
|
||||
PREF_OCCUPANTS_WRAP,
|
||||
PREF_CORRECTION_ALLOW,
|
||||
PREF_HISTORY_COLOR_MUC,
|
||||
PREF_AVATAR_CMD,
|
||||
} preference_t;
|
||||
|
||||
typedef struct prof_alias_t {
|
||||
|
||||
Reference in New Issue
Block a user