diff options
Diffstat (limited to 'src/gnunet_chat_lib.c')
-rw-r--r-- | src/gnunet_chat_lib.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index 8c7558d..35de7dc 100644 --- a/src/gnunet_chat_lib.c +++ b/src/gnunet_chat_lib.c | |||
@@ -88,7 +88,12 @@ GNUNET_CHAT_account_create (struct GNUNET_CHAT_Handle *handle, | |||
88 | if ((!handle) || (handle->destruction) || (!name)) | 88 | if ((!handle) || (handle->destruction) || (!name)) |
89 | return GNUNET_SYSERR; | 89 | return GNUNET_SYSERR; |
90 | 90 | ||
91 | return handle_create_account(handle, name); | 91 | char *low = util_get_lower(name); |
92 | |||
93 | int result = handle_create_account(handle, low); | ||
94 | |||
95 | GNUNET_free(low); | ||
96 | return result; | ||
92 | } | 97 | } |
93 | 98 | ||
94 | 99 | ||
@@ -206,7 +211,12 @@ GNUNET_CHAT_set_name (struct GNUNET_CHAT_Handle *handle, | |||
206 | if (!name) | 211 | if (!name) |
207 | return GNUNET_NO; | 212 | return GNUNET_NO; |
208 | 213 | ||
209 | return GNUNET_MESSENGER_set_name(handle->messenger, name); | 214 | char *low = util_get_lower(name); |
215 | |||
216 | int result = GNUNET_MESSENGER_set_name(handle->messenger, name); | ||
217 | |||
218 | GNUNET_free(low); | ||
219 | return result; | ||
210 | } | 220 | } |
211 | 221 | ||
212 | 222 | ||