[Pkg-telepathy-commits] [telepathy-mission-control-6] 48/280: Allow client names to start with an underscore
Simon McVittie
smcv at debian.org
Thu Mar 27 20:07:04 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository telepathy-mission-control-6.
commit 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 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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-6.git
More information about the Pkg-telepathy-commits
mailing list