src/protocols/silc/silc.c

changeset 11718
90804d019837
parent 11522
c2a0d620f903
child 11837
2f1206084fef
equal deleted inserted replaced
11717:283a459acdf5 11718:90804d019837
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;

mercurial