diff options
author | Simon McVittie <smcv@debian.org> | 2010-10-04 18:57:39 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-11-18 14:56:17 +0000 |
commit | 84a18ead14f77f44085cde9cd2c23ee1a65448a4 (patch) | |
tree | cbcea6560d66abfe8f6acd28ffe1a4b412c8fa74 /src/idle-handles.c | |
parent | b56152d15e021de1de5644811ad6b50f97a5cc46 (diff) | |
download | telepathy-idle-84a18ead14f77f44085cde9cd2c23ee1a65448a4.tar.gz |
Add Protocol objects
Diffstat (limited to 'src/idle-handles.c')
-rw-r--r-- | src/idle-handles.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/idle-handles.c b/src/idle-handles.c index 6ba612d..fd5cea0 100644 --- a/src/idle-handles.c +++ b/src/idle-handles.c @@ -127,7 +127,7 @@ static gboolean _channelname_is_valid(const gchar *channel) { return TRUE; } -static gchar *_nick_normalize_func(TpHandleRepoIface *repo, const gchar *id, gpointer ctx, GError **error) { +gchar *idle_normalize_nickname (const gchar *id, GError **error) { if (!idle_nickname_is_valid(id, FALSE)) { g_set_error(error, TP_ERRORS, TP_ERROR_INVALID_HANDLE, "invalid nickname"); return NULL; @@ -138,6 +138,10 @@ static gchar *_nick_normalize_func(TpHandleRepoIface *repo, const gchar *id, gpo return normalized; } +static gchar *_nick_normalize_func(TpHandleRepoIface *repo, const gchar *id, gpointer ctx, GError **error) { + return idle_normalize_nickname (id, error); +} + static gchar *_channel_normalize_func(TpHandleRepoIface *repo, const gchar *id, gpointer ctx, GError **error) { if (!_channelname_is_valid(id)) { g_set_error(error, TP_ERRORS, TP_ERROR_INVALID_HANDLE, "invalid channel ID"); |