/status_to: Do not convert resource name to lower case
authorMikael Berthe <mikael@lilotux.net>
Sat, 11 Feb 2006 15:40:06 +0100
changeset 696 ee06382dfb22
parent 695 c299035ccb9f
child 697 f75972271c1f
/status_to: Do not convert resource name to lower case
mcabber/src/commands.c
--- 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);