Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
10645:6480697e907b | 10646:6a618db0a404 |
---|---|
5800 | 5800 |
5801 static void | 5801 static void |
5802 oscar_set_status_icq(GaimAccount *account, GaimStatus *status) | 5802 oscar_set_status_icq(GaimAccount *account, GaimStatus *status) |
5803 { | 5803 { |
5804 GaimConnection *gc = gaim_account_get_connection(account); | 5804 GaimConnection *gc = gaim_account_get_connection(account); |
5805 OscarData *od = (OscarData *)gc->proto_data; | 5805 OscarData *od = NULL; |
5806 const gchar *status_id = gaim_status_get_id(status); | 5806 const gchar *status_id = gaim_status_get_id(status); |
5807 | |
5808 if (gc) | |
5809 od = (OscarData *)gc->proto_data; | |
5810 if (!od) | |
5811 return; | |
5807 | 5812 |
5808 if (gaim_status_type_get_primitive(gaim_status_get_type(status)) == GAIM_STATUS_HIDDEN) | 5813 if (gaim_status_type_get_primitive(gaim_status_get_type(status)) == GAIM_STATUS_HIDDEN) |
5809 account->perm_deny = 4; | 5814 account->perm_deny = 4; |
5810 else | 5815 else |
5811 account->perm_deny = 3; | 5816 account->perm_deny = 3; |