# HG changeset patch # User Bartoz Oler # Date 1127427621 0 # Node ID 2aa7d8dd61d742bfed8de3fa78d681692467570a # Parent 22bfbc2a55550721d6b419a67d6008bf359a7b45 [gaim-migrate @ 13831] Default type of the outgoing messages is CHAT. committer: Tailor Script diff -r 22bfbc2a5555 -r 2aa7d8dd61d7 src/protocols/gg/gg.c --- a/src/protocols/gg/gg.c Thu Sep 22 21:39:09 2005 +0000 +++ b/src/protocols/gg/gg.c Thu Sep 22 22:20:21 2005 +0000 @@ -295,6 +295,9 @@ } /* }}} */ +/* + */ +/* static void ggp_callback_register_account_cancel(GaimConnection *gc, GaimRequestFields *fields) {{{ */ static void ggp_callback_register_account_cancel(GaimConnection *gc, GaimRequestFields *fields) { GGPInfo *info = gc->proto_data; @@ -306,6 +309,7 @@ g_free(token); } +/* }}} */ /* ----- PUBLIC DIRECTORY SEARCH ---------------------------------------- */ @@ -1233,13 +1237,16 @@ if (strlen(msg) == 0) return 1; + gaim_debug_info("gg", "ggp_send_im: msg = %s\n", msg); tmp = charset_convert(msg, "UTF-8", "CP1250"); if (tmp != NULL && strlen(tmp) > 0) { - if (gg_send_message(info->session, GG_CLASS_MSG, ggp_str_to_uin(who), (unsigned char *)tmp) < 0) { + if (gg_send_message(info->session, GG_CLASS_CHAT, ggp_str_to_uin(who), + (unsigned char *)tmp) < 0) { return -1; } } + g_free(tmp); return 1; } @@ -1637,6 +1644,7 @@ }; /* }}} */ +/* static void gaim_gg_debug_handler(int level, const char * format, va_list args) {{{ */ static void gaim_gg_debug_handler(int level, const char * format, va_list args) { GaimDebugLevel gaim_level; char *msg = g_strdup_vprintf(format, args); @@ -1659,6 +1667,7 @@ gaim_debug(gaim_level, "gg", msg); g_free(msg); } +/* }}} */ /* */