Mercurial > pidgin
comparison src/server.c @ 9058:cde9fb3546ed
[gaim-migrate @ 9834]
Removed OPT_PROTO_CORRECT_TIME and moved some functionality
out of the core and into oscar.c and toc.c
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 25 May 2004 03:54:12 +0000 |
parents | 8f838ae3e710 |
children | f0be63d6d192 |
comparison
equal
deleted
inserted
replaced
9057:c55aa23bf56e | 9058:cde9fb3546ed |
---|---|
145 if (gc != NULL && gc->prpl != NULL) | 145 if (gc != NULL && gc->prpl != NULL) |
146 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 146 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
147 | 147 |
148 account = gaim_connection_get_account(gc); | 148 account = gaim_connection_get_account(gc); |
149 | 149 |
150 if (gaim_account_get_user_info(account) != NULL) { | 150 if (gaim_account_get_user_info(account) != NULL) |
151 /* buf = gaim_strdup_withhtml(gc->user->user_info); */ | |
152 serv_set_info(gc, gaim_account_get_user_info(account)); | 151 serv_set_info(gc, gaim_account_get_user_info(account)); |
153 /* g_free(buf); */ | |
154 } | |
155 | 152 |
156 if (gc->idle_timer > 0) | 153 if (gc->idle_timer > 0) |
157 gaim_timeout_remove(gc->idle_timer); | 154 gaim_timeout_remove(gc->idle_timer); |
158 | 155 |
159 gc->idle_timer = gaim_timeout_add(20000, check_idle, gc); | 156 gc->idle_timer = gaim_timeout_add(20000, check_idle, gc); |
160 serv_touch_idle(gc); | 157 serv_touch_idle(gc); |
161 | |
162 /* Move this hack into toc.c */ | |
163 if (prpl_info->options & OPT_PROTO_CORRECT_TIME) | |
164 serv_add_buddy(gc, | |
165 gaim_account_get_username(gaim_connection_get_account(gc)), | |
166 NULL); | |
167 | 158 |
168 update_keepalive(gc, TRUE); | 159 update_keepalive(gc, TRUE); |
169 } | 160 } |
170 | 161 |
171 /* This should return the elapsed time in seconds in which Gaim will not send | 162 /* This should return the elapsed time in seconds in which Gaim will not send |
1064 int signing_off = 0; | 1055 int signing_off = 0; |
1065 | 1056 |
1066 account = gaim_connection_get_account(gc); | 1057 account = gaim_connection_get_account(gc); |
1067 b = gaim_find_buddy(account, name); | 1058 b = gaim_find_buddy(account, name); |
1068 | 1059 |
1069 if (signon && (GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl)->options & | |
1070 OPT_PROTO_CORRECT_TIME)) { | |
1071 | |
1072 char *tmp = g_strdup(gaim_normalize(account, name)); | |
1073 if (!gaim_utf8_strcasecmp(tmp, | |
1074 gaim_normalize(account, gaim_account_get_username(account)))) { | |
1075 | |
1076 gc->evil = evil; | |
1077 gc->login_time_official = signon; | |
1078 /*update_idle_times();*/ | |
1079 } | |
1080 g_free(tmp); | |
1081 } | |
1082 | |
1083 if (!b) { | 1060 if (!b) { |
1084 gaim_debug(GAIM_DEBUG_ERROR, "server", "No such buddy: %s\n", name); | 1061 gaim_debug(GAIM_DEBUG_ERROR, "server", "No such buddy: %s\n", name); |
1085 return; | 1062 return; |
1086 } | 1063 } |
1087 | 1064 |