summaryrefslogtreecommitdiff
path: root/src/idle-handles.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-10-04 18:57:39 +0100
committerSimon McVittie <smcv@debian.org>2010-11-18 14:56:17 +0000
commit84a18ead14f77f44085cde9cd2c23ee1a65448a4 (patch)
treecbcea6560d66abfe8f6acd28ffe1a4b412c8fa74 /src/idle-handles.c
parentb56152d15e021de1de5644811ad6b50f97a5cc46 (diff)
downloadtelepathy-idle-84a18ead14f77f44085cde9cd2c23ee1a65448a4.tar.gz
Add Protocol objects
Diffstat (limited to 'src/idle-handles.c')
-rw-r--r--src/idle-handles.c6
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");