Mercurial > pidgin.yaz
comparison src/idle.c @ 9944:e4a27c9aec4c
[gaim-migrate @ 10838]
with much rejoicing, and massive thanks to the efforts of Christian, and
all who have helped him, I present to you the incomplete status
rewrite!
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 03 Sep 2004 21:35:52 +0000 |
parents | 4a15962c344a |
children | ced29c7b396c |
comparison
equal
deleted
inserted
replaced
9943:f8e395a054e2 | 9944:e4a27c9aec4c |
---|---|
106 } | 106 } |
107 } | 107 } |
108 | 108 |
109 if(!default_away && away_messages) | 109 if(!default_away && away_messages) |
110 default_away = away_messages->data; | 110 default_away = away_messages->data; |
111 */ | |
111 | 112 |
112 gaim_debug(GAIM_DEBUG_INFO, "idle", | 113 gaim_debug(GAIM_DEBUG_INFO, "idle", |
113 "Making %s away automatically\n", | 114 "Making %s away automatically\n", |
114 gaim_account_get_username(account)); | 115 gaim_account_get_username(account)); |
116 | |
117 /* XXX CORE/UI | |
115 if (g_list_length(gaim_connections_get_all()) == 1) | 118 if (g_list_length(gaim_connections_get_all()) == 1) |
116 do_away_message(NULL, default_away); | 119 do_away_message(NULL, default_away); |
117 else if (default_away) | 120 else if (default_away) |
118 serv_set_away(gc, GAIM_AWAY_CUSTOM, default_away->message); | 121 serv_set_away(gc, GAIM_AWAY_CUSTOM, default_away->message); |
122 */ | |
123 | |
119 gc->is_auto_away = 1; | 124 gc->is_auto_away = 1; |
120 } else | 125 } else |
121 gc->is_auto_away = 2; | 126 gc->is_auto_away = 2; |
122 } else if (gc->is_auto_away && | 127 } else if (gc->is_auto_away && |
123 idle_time < 60 * gaim_prefs_get_int("/core/away/mins_before_away")) { | 128 idle_time < 60 * gaim_prefs_get_int("/core/away/mins_before_away")) { |
124 if (gc->is_auto_away == 2) { | 129 if (gc->is_auto_away == 2) { |
125 gc->is_auto_away = 0; | 130 gc->is_auto_away = 0; |
126 return TRUE; | 131 return TRUE; |
127 } | 132 } |
128 gc->is_auto_away = 0; | 133 gc->is_auto_away = 0; |
134 | |
135 /* XXX CORE/UI | |
129 if (awaymessage == NULL) { | 136 if (awaymessage == NULL) { |
130 gaim_debug(GAIM_DEBUG_INFO, "idle", | 137 gaim_debug(GAIM_DEBUG_INFO, "idle", |
131 "Removing auto-away message for %s\n", gaim_account_get_username(account)); | 138 "Removing auto-away message for %s\n", gaim_account_get_username(account)); |
132 serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); | 139 serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); |
133 } else { | 140 } else { |
138 "Replacing auto-away with global for %s\n", | 145 "Replacing auto-away with global for %s\n", |
139 gaim_account_get_username(account)); | 146 gaim_account_get_username(account)); |
140 serv_set_away(gc, GAIM_AWAY_CUSTOM, awaymessage->message); | 147 serv_set_away(gc, GAIM_AWAY_CUSTOM, awaymessage->message); |
141 } | 148 } |
142 } | 149 } |
150 */ | |
143 } | 151 } |
144 | 152 |
145 | 153 |
146 /* If we're not reporting idle times to the server, still use Gaim | 154 /* If we're not reporting idle times to the server, still use Gaim |
147 usage for auto-away, but quit here so we don't report to the | 155 usage for auto-away, but quit here so we don't report to the |