# HG changeset patch # User Mikael Berthe # Date 1139668806 -3600 # Node ID ee06382dfb223d1a0c5c592f86a8e8a82a59cf91 # Parent c299035ccb9fc699777211828ff99166a0b301d0 /status_to: Do not convert resource name to lower case diff -r c299035ccb9f -r ee06382dfb22 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);