about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 7d03a476..05122a96 100644
--- a/src/command.c
+++ b/src/command.c
@@ -159,8 +159,10 @@ static gboolean _cmd_connect(const char * const inp)
         cons_show("Usage: /connect user@host");
         result = TRUE;
     } else {
-        char *user;
+        char *user, *lower;
         user = strndup(inp+9, strlen(inp)-9);
+        lower = g_utf8_strdown(user, -1);
+
         status_bar_get_password();
         status_bar_refresh();
         char passwd[21];
@@ -168,7 +170,7 @@ static gboolean _cmd_connect(const char * const inp)
         inp_get_password(passwd);
         inp_non_block();
         
-        conn_status = jabber_connect(user, passwd);
+        conn_status = jabber_connect(lower, passwd);
         if (conn_status == JABBER_CONNECTING)
             cons_show("Connecting...");
         if (conn_status == JABBER_DISCONNECTED)