changeset 696:ee06382dfb22

/status_to: Do not convert resource name to lower case
author Mikael Berthe <mikael@lilotux.net>
date Sat, 11 Feb 2006 15:40:06 +0100
parents c299035ccb9f
children f75972271c1f
files mcabber/src/commands.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);