Mercurial > pidgin.yaz
diff src/protocols/toc/toc.c @ 10401:3e4ecbdf8d0a
[gaim-migrate @ 11638]
Stuff compiles again, if that's what you wanted stuff to do. It works a bit
too. I fixed one crash in oscar, only to reveal another that I didnn't fix
(tooltips).
Most protocols still need updating to actually log in in the specified state,
TCL needs some love for gaim_account_connect, perl probably does too but that
needs more love anyway. The reconnect plugin could be more intelligent too, as
could gaim-remote.
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Tue, 21 Dec 2004 01:48:30 +0000 |
| parents | 32467b63f55a |
| children | 0f7452b1f777 |
line wrap: on
line diff
--- a/src/protocols/toc/toc.c Sun Dec 19 20:32:32 2004 +0000 +++ b/src/protocols/toc/toc.c Tue Dec 21 01:48:30 2004 +0000 @@ -124,7 +124,7 @@ /* ok. this function used to take username/password, and return 0 on success. * now, it takes username/password, and returns NULL on error or a new gaim_connection * on success. */ -static void toc_login(GaimAccount *account) +static void toc_login(GaimAccount *account, GaimStatus *status) { GaimConnection *gc; struct toc_data *tdt; @@ -1162,8 +1162,9 @@ } #endif -static void toc_set_away(GaimConnection *gc, const char *state, const char *message) +static void toc_set_status(GaimAccount *account, GaimStatus *status) { +#if 0 /* do we care about TOC any more? */ char buf[BUF_LEN * 2]; if (gc->away) { g_free(gc->away); @@ -1178,6 +1179,7 @@ } else g_snprintf(buf, MSG_LEN, "toc_set_away \"\""); sflap_send(g, buf, -1, TYPE_DATA); +#endif } static void toc_set_info(GaimConnection *g, const char *info) @@ -1534,9 +1536,13 @@ toc_set_permit_deny(gc); } -static GList *toc_away_states(GaimConnection *gc) +static GList *toc_away_states(GaimAccount *account) { +#if 0 /* do we care about TOC any more? */ return g_list_append(NULL, GAIM_AWAY_CUSTOM); +#else + return NULL; +#endif } static void @@ -2134,7 +2140,7 @@ toc_set_info, /* set_info */ NULL, /* send_typing */ toc_get_info, /* get_info */ - toc_set_away, /* set_away */ + toc_set_status, /* set_away */ toc_set_idle, /* set_idle */ toc_change_passwd, /* change_passwd */ toc_add_buddy, /* add_buddy */
