| 79 |
79 |
| 80 state = gaim_status_get_id(status); |
80 state = gaim_status_get_id(status); |
| 81 |
81 |
| 82 if (state == NULL) |
82 if (state == NULL) |
| 83 return; |
83 return; |
| 84 |
|
| 85 if (strcmp(state, "offline") && !gc) { |
|
| 86 gaim_account_connect(account); |
|
| 87 return; |
|
| 88 } else if (!strcmp(state, "offline") && (gc != NULL)) { |
|
| 89 gaim_account_disconnect(account); |
|
| 90 return; |
|
| 91 } |
|
| 92 |
84 |
| 93 if ((sg == NULL) || (sg->conn == NULL)) |
85 if ((sg == NULL) || (sg->conn == NULL)) |
| 94 return; |
86 return; |
| 95 |
87 |
| 96 mode = sg->conn->local_entry->mode; |
88 mode = sg->conn->local_entry->mode; |