From 0837461a4ec0f0dd9837e94448d2ed8b9882ebff Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 26 Sep 2013 19:18:25 +0100 Subject: [PATCH 01/22] Allow client names to start with an underscore There's no good reason not to, and telepathy-spec 0.99.1 says they can. --- src/mcd-client.c | 4 ++-- 1 file 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; } -- 1.8.4.rc3