libpurple/protocols/irc/parse.c

branch
release-2.x.y
changeset 38924
233025cb30f5
parent 38921
5dbbf94443ee
parent 38908
86e7c9ca0bcd
child 38929
159404505264
child 41339
3230f4408394
equal deleted inserted replaced
38923:56c6d56d373f 38924:233025cb30f5
113 { "904", "*", 0, irc_msg_authtryagain }, /* SASL auth failed, can recover*/ 113 { "904", "*", 0, irc_msg_authtryagain }, /* SASL auth failed, can recover*/
114 { "905", "*", 0, irc_msg_authfail }, /* SASL auth failed */ 114 { "905", "*", 0, irc_msg_authfail }, /* SASL auth failed */
115 { "906", "*", 0, irc_msg_authfail }, /* SASL auth failed */ 115 { "906", "*", 0, irc_msg_authfail }, /* SASL auth failed */
116 { "907", "*", 0, irc_msg_authfail }, /* SASL auth failed */ 116 { "907", "*", 0, irc_msg_authfail }, /* SASL auth failed */
117 { "cap", "vv:", 3, irc_msg_cap }, /* SASL capable */ 117 { "cap", "vv:", 3, irc_msg_cap }, /* SASL capable */
118 { "authenticate", ":", 1, irc_msg_authenticate }, /* SASL authenticate */
118 #endif 119 #endif
119 { "invite", "n:", 2, irc_msg_invite }, /* Invited */ 120 { "invite", "n:", 2, irc_msg_invite }, /* Invited */
120 { "join", ":", 1, irc_msg_join }, /* Joined a channel */ 121 { "join", ":", 1, irc_msg_join }, /* Joined a channel */
121 { "kick", "cn:", 3, irc_msg_kick }, /* KICK */ 122 { "kick", "cn:", 3, irc_msg_kick }, /* KICK */
122 { "mode", "tv:", 2, irc_msg_mode }, /* MODE for channel */ 123 { "mode", "tv:", 2, irc_msg_mode }, /* MODE for channel */
678 * TODO: It should be passed as an array of bytes and a length 679 * TODO: It should be passed as an array of bytes and a length
679 * instead of a null terminated string. 680 * instead of a null terminated string.
680 */ 681 */
681 purple_signal_emit(_irc_plugin, "irc-receiving-text", gc, &input); 682 purple_signal_emit(_irc_plugin, "irc-receiving-text", gc, &input);
682 683
684 if (purple_debug_is_verbose()) {
685 char *clean = purple_utf8_salvage(input);
686 clean = g_strstrip(clean);
687 purple_debug_misc("irc", ">> %s\n", clean);
688 g_free(clean);
689 }
690
683 if (!strncmp(input, "PING ", 5)) { 691 if (!strncmp(input, "PING ", 5)) {
684 msg = irc_format(irc, "vv", "PONG", input + 5); 692 msg = irc_format(irc, "vv", "PONG", input + 5);
685 irc_send(irc, msg); 693 irc_send(irc, msg);
686 g_free(msg); 694 g_free(msg);
687 return; 695 return;

mercurial