Mercurial > pidgin.yaz
diff src/protocols/oscar/oscar.c @ 10646:6a618db0a404
[gaim-migrate @ 12162]
Made IRC, Jabber, MSN, and ICQ not crash on login. Note that these don't
necessarily work the way they should yet, they just don't crash.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 01 Mar 2005 21:15:58 +0000 |
parents | 0f5c5e6fb27f |
children | 20cbadb004a0 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Mon Feb 28 18:18:22 2005 +0000 +++ b/src/protocols/oscar/oscar.c Tue Mar 01 21:15:58 2005 +0000 @@ -5802,9 +5802,14 @@ oscar_set_status_icq(GaimAccount *account, GaimStatus *status) { GaimConnection *gc = gaim_account_get_connection(account); - OscarData *od = (OscarData *)gc->proto_data; + OscarData *od = NULL; const gchar *status_id = gaim_status_get_id(status); + if (gc) + od = (OscarData *)gc->proto_data; + if (!od) + return; + if (gaim_status_type_get_primitive(gaim_status_get_type(status)) == GAIM_STATUS_HIDDEN) account->perm_deny = 4; else