aboutsummaryrefslogtreecommitdiffstats
path: root/skype/skype.c
diff options
context:
space:
mode:
Diffstat (limited to 'skype/skype.c')
-rw-r--r--skype/skype.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/skype/skype.c b/skype/skype.c
index c2d0428e..a12fc115 100644
--- a/skype/skype.c
+++ b/skype/skype.c
@@ -557,8 +557,8 @@ static void skype_parse_chatmessage(struct im_connection *ic, char *line)
g_snprintf(buf, IRC_LINE_SIZE, "%s",
body);
else {
- g_snprintf(buf, IRC_LINE_SIZE, "EDIT: %s",
- body);
+ g_snprintf(buf, IRC_LINE_SIZE, "%s %s",
+ set_getstr(&ic->acc->set, "edit_prefix"), body);
sd->is_edit = 0;
}
}
@@ -1042,6 +1042,11 @@ static char *skype_set_display_name(set_t *set, char *value)
return value;
}
+static char *skype_set_edit_prefix(set_t *set, char *value)
+{
+ return value;
+}
+
static char *skype_set_balance(set_t *set, char *value)
{
account_t *acc = set->data;
@@ -1220,6 +1225,9 @@ static void skype_init(account_t *acc)
s = set_add(&acc->set, "auto_join", "false", set_eval_bool, acc);
s->flags |= ACC_SET_OFFLINE_ONLY;
+
+ s = set_add(&acc->set, "edit_prefix", "EDIT:",
+ skype_set_edit_prefix, acc);
}
void init_plugin(void)