Fix adding metric symbol.
}
else {
/* Slow but keep start element of list in safe */
- metric_list = g_list_append (metric_list, metric);
+ if (!g_list_find (metric_list, metric)) {
+ metric_list = g_list_append (metric_list, metric);
+ }
}
return TRUE;
}
else {
/* Slow but keep start element of list in safe */
- metric_list = g_list_append (metric_list, metric);
+ if (!g_list_find (metric_list, metric)) {
+ metric_list = g_list_append (metric_list, metric);
+ }
}
}
}
if (pos > begin && *pos == '@') {
/* Try to extract it with username */
p = pos - 1;
- while (p > begin && (is_domain (*p) || *p == '.')) {
+ while (p > begin && (is_domain (*p) || *p == '.' || *p == '_')) {
p --;
}
if (!is_domain (*p)) {