libpurple/protocols/irc/parse.c

changeset 24763
67d9d4c975c0
parent 24574
4ee71b4f335f
child 28468
aa8975185a48
equal deleted inserted replaced
24751:fc3ae8fb8dfc 24763:67d9d4c975c0
492 default: 492 default:
493 result[j++] = result[i]; 493 result[j++] = result[i];
494 } 494 }
495 } 495 }
496 result[j] = '\0'; 496 result[j] = '\0';
497 return result; 497 return result;
498 } 498 }
499 499
500 const char *irc_nick_skip_mode(struct irc_conn *irc, const char *nick) 500 const char *irc_nick_skip_mode(struct irc_conn *irc, const char *nick)
501 { 501 {
502 static const char *default_modes = "@+%&"; 502 static const char *default_modes = "@+%&";
730 } 730 }
731 731
732 static void irc_parse_error_cb(struct irc_conn *irc, char *input) 732 static void irc_parse_error_cb(struct irc_conn *irc, char *input)
733 { 733 {
734 char *clean; 734 char *clean;
735 /* This really should be escaped somehow that you can tell what 735 /* This really should be escaped somehow that you can tell what
736 * the junk was -- but as it is, it can crash glib. */ 736 * the junk was -- but as it is, it can crash glib. */
737 clean = purple_utf8_salvage(input); 737 clean = purple_utf8_salvage(input);
738 purple_debug(PURPLE_DEBUG_WARNING, "irc", "Unrecognized string: %s\n", clean); 738 purple_debug(PURPLE_DEBUG_WARNING, "irc", "Unrecognized string: %s\n", clean);
739 g_free(clean); 739 g_free(clean);
740 } 740 }

mercurial