[next] telepathy-mission-control: Allow client names to start with an underscore
Simon McVittie
smcv at kemper.freedesktop.org
Fri Oct 4 06:00:40 PDT 2013
Module: telepathy-mission-control
Branch: next
Commit: 17832d9bb6e248bccbf7b6f96fdd1e17262b7a89
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=17832d9bb6e248bccbf7b6f96fdd1e17262b7a89
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Thu Sep 26 19:18:25 2013 +0100
Allow client names to start with an underscore
There's no good reason not to, and telepathy-spec 0.99.1 says they can.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54879
Reviewed-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
---
src/mcd-client.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mcd-client.c b/src/mcd-client.c
index 455cfd7..c2a6427 100644
--- a/src/mcd-client.c
+++ b/src/mcd-client.c
@@ -1162,10 +1162,10 @@ _mcd_client_check_valid_name (const gchar *name_suffix,
{
guint i;
- if (!g_ascii_isalpha (*name_suffix))
+ if (!g_ascii_isalpha (*name_suffix) && *name_suffix != '_')
{
g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
- "Client names must start with a letter");
+ "Client names must start with a letter or underscore");
return FALSE;
}
More information about the telepathy-commits
mailing list