comparison src/protocols/silc/silc.c @ 11488:9c7ca8a8c4b8

[gaim-migrate @ 13730] Fix a bunch of compile warnings, and fix going offline actually disconnecting the account in SILC committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 10 Sep 2005 17:28:04 +0000
parents 17142948653e
children a26eb48d1953
comparison
equal deleted inserted replaced
11487:4b021f78c1ed 11488:9c7ca8a8c4b8
85 return; 85 return;
86 86
87 if (strcmp(state, "offline") && !gc) { 87 if (strcmp(state, "offline") && !gc) {
88 gaim_account_connect(account); 88 gaim_account_connect(account);
89 return; 89 return;
90 } else if (!strcmp(state, "offline")) { 90 } else if (!strcmp(state, "offline") && (gc != NULL)) {
91 gaim_account_disconnect(account);
91 return; 92 return;
92 } 93 }
93 94
94 if ((sg == NULL) || (sg->conn == NULL)) 95 if ((sg == NULL) || (sg->conn == NULL))
95 return; 96 return;