From: Bartosz O. <bo...@us...> - 2005-09-22 22:20:29
|
Update of /cvsroot/gaim/gaim/src/protocols/gg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20712 Modified Files: gg.c Log Message: Default type of the outgoing messages is CHAT. Index: gg.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/gg/gg.c,v retrieving revision 1.152 retrieving revision 1.153 diff -u -d -p -r1.152 -r1.153 --- gg.c 14 Sep 2005 19:01:33 -0000 1.152 +++ gg.c 22 Sep 2005 22:20:21 -0000 1.153 @@ -295,6 +295,9 @@ exit_err: } /* }}} */ +/* + */ +/* 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 @@ static void ggp_callback_register_accoun g_free(token); } +/* }}} */ /* ----- PUBLIC DIRECTORY SEARCH ---------------------------------------- */ @@ -1233,13 +1237,16 @@ static int ggp_send_im(GaimConnection *g 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 GaimPluginInfo info = { }; /* }}} */ +/* 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 @@ static void gaim_gg_debug_handler(int le gaim_debug(gaim_level, "gg", msg); g_free(msg); } +/* }}} */ /* */ |