equal
deleted
inserted
replaced
522 // The JID has been specified. Quick check... |
522 // The JID has been specified. Quick check... |
523 if (check_jid_syntax(jid)) { |
523 if (check_jid_syntax(jid)) { |
524 scr_LogPrint(LPRINT_NORMAL, "<%s> is not a valid Jabber ID.", jid); |
524 scr_LogPrint(LPRINT_NORMAL, "<%s> is not a valid Jabber ID.", jid); |
525 jid = NULL; |
525 jid = NULL; |
526 } else { |
526 } else { |
527 mc_strtolower(jid); |
527 // Convert jid to lowercase |
|
528 char *p = jid; |
|
529 for ( ; *p && *p != '/'; p++) |
|
530 *p = tolower(*p); |
528 } |
531 } |
529 } else { |
532 } else { |
530 // Add the current buddy |
533 // Add the current buddy |
531 if (current_buddy) |
534 if (current_buddy) |
532 jid = (char*)buddy_getjid(BUDDATA(current_buddy)); |
535 jid = (char*)buddy_getjid(BUDDATA(current_buddy)); |
536 |
539 |
537 if (jid) { |
540 if (jid) { |
538 char *cmd; |
541 char *cmd; |
539 if (!msg) |
542 if (!msg) |
540 msg = ""; |
543 msg = ""; |
541 mc_strtolower(jid); |
|
542 cmd = g_strdup_printf("%s %s", st, msg); |
544 cmd = g_strdup_printf("%s %s", st, msg); |
543 scr_LogPrint(LPRINT_LOGNORM, "Sending to <%s> /status %s", jid, cmd); |
545 scr_LogPrint(LPRINT_LOGNORM, "Sending to <%s> /status %s", jid, cmd); |
544 setstatus(jid, cmd); |
546 setstatus(jid, cmd); |
545 g_free(cmd); |
547 g_free(cmd); |
546 } |
548 } |