mcabber/src/commands.c
changeset 696 ee06382dfb22
parent 694 6d6fdaf846ed
child 699 ee03b56b93ee
--- a/mcabber/src/commands.c	Sat Feb 11 15:32:41 2006 +0100
+++ b/mcabber/src/commands.c	Sat Feb 11 15:40:06 2006 +0100
@@ -524,7 +524,10 @@
       scr_LogPrint(LPRINT_NORMAL, "<%s> is not a valid Jabber ID.", jid);
       jid = NULL;
     } else {
-      mc_strtolower(jid);
+      // Convert jid to lowercase
+      char *p = jid;
+      for ( ; *p && *p != '/'; p++)
+        *p = tolower(*p);
     }
   } else {
     // Add the current buddy
@@ -538,7 +541,6 @@
     char *cmd;
     if (!msg)
       msg = "";
-    mc_strtolower(jid);
     cmd = g_strdup_printf("%s %s", st, msg);
     scr_LogPrint(LPRINT_LOGNORM, "Sending to <%s> /status %s", jid, cmd);
     setstatus(jid, cmd);