summaryrefslogtreecommitdiff
path: root/src/idle-handles.h
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon.jongsma@collabora.co.uk>2009-01-30 13:45:25 -0600
committerJonathon Jongsma <jonathon.jongsma@collabora.co.uk>2009-01-30 13:45:25 -0600
commit00ead0bb95daa75de7be57f555f5fa5f05371cb3 (patch)
treed0d2e86f7ce9e955bc45041bdea72818e3c32c06 /src/idle-handles.h
parentac268e98767da9a2e4d10155fa612cb5b55bb8ef (diff)
downloadtelepathy-idle-00ead0bb95daa75de7be57f555f5fa5f05371cb3.tar.gz
Expose the nick validation function and use it in the CM
Add a filter for the 'account' param of the RequestConnection method so that it can check if the passed nickname is valid for an IRC nick and reject it if not. Previously, telepathy-idle happily accepted invalid nicknames and then didn't provide any decent feedback about what was wrong when the 'login' failed.
Diffstat (limited to 'src/idle-handles.h')
-rw-r--r--src/idle-handles.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idle-handles.h b/src/idle-handles.h
index 516ad9c..24e277b 100644
--- a/src/idle-handles.h
+++ b/src/idle-handles.h
@@ -27,6 +27,7 @@
G_BEGIN_DECLS
void idle_handle_repos_init(TpHandleRepoIface **handles);
+gboolean idle_nickname_is_valid(const gchar *nickname);
G_END_DECLS