src/server.c

changeset 9613
cd81e0c76ec0
parent 9594
7a1f902b9494
child 9620
fe99fcea5c1c
equal deleted inserted replaced
9612:89f5a9900fdd 9613:cd81e0c76ec0
1206 gaim_prefs_get_bool("/core/logging/log_signon_signoff")) { 1206 gaim_prefs_get_bool("/core/logging/log_signon_signoff")) {
1207 GaimAccount *account = gaim_connection_get_account(gc); 1207 GaimAccount *account = gaim_connection_get_account(gc);
1208 GaimLog *log = gaim_account_get_log(account); 1208 GaimLog *log = gaim_account_get_log(account);
1209 char *tmp = g_strdup_printf(_("%s signed on"), alias); 1209 char *tmp = g_strdup_printf(_("%s signed on"), alias);
1210 1210
1211 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, gaim_get_buddy_alias(b), 1211 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, (alias ? alias : name),
1212 current_time, tmp); 1212 current_time, tmp);
1213 g_free(tmp); 1213 g_free(tmp);
1214 } 1214 }
1215 } 1215 }
1216 1216
1224 tmp = g_strdup_printf(_("%s came back"), alias); 1224 tmp = g_strdup_printf(_("%s came back"), alias);
1225 else if(!(b->uc & UC_UNAVAILABLE) && (type & UC_UNAVAILABLE)) 1225 else if(!(b->uc & UC_UNAVAILABLE) && (type & UC_UNAVAILABLE))
1226 tmp = g_strdup_printf(_("%s went away"), alias); 1226 tmp = g_strdup_printf(_("%s went away"), alias);
1227 1227
1228 if(tmp){ 1228 if(tmp){
1229 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, gaim_get_buddy_alias(b), 1229 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, (alias ? alias : name),
1230 current_time, tmp); 1230 current_time, tmp);
1231 g_free(tmp); 1231 g_free(tmp);
1232 } 1232 }
1233 } 1233 }
1234 1234
1237 gaim_prefs_get_bool("/core/logging/log_idle_state")) { 1237 gaim_prefs_get_bool("/core/logging/log_idle_state")) {
1238 GaimAccount *account = gaim_connection_get_account(gc); 1238 GaimAccount *account = gaim_connection_get_account(gc);
1239 GaimLog *log = gaim_account_get_log(account); 1239 GaimLog *log = gaim_account_get_log(account);
1240 char *tmp = g_strdup_printf(_("%s became idle"), alias); 1240 char *tmp = g_strdup_printf(_("%s became idle"), alias);
1241 1241
1242 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, gaim_get_buddy_alias(b), 1242 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, (alias ? alias : name),
1243 current_time, tmp); 1243 current_time, tmp);
1244 g_free(tmp); 1244 g_free(tmp);
1245 } 1245 }
1246 } else if (old_idle && !idle) { 1246 } else if (old_idle && !idle) {
1247 if(gaim_prefs_get_bool("/core/logging/log_system") && 1247 if(gaim_prefs_get_bool("/core/logging/log_system") &&
1248 gaim_prefs_get_bool("/core/logging/log_idle_state")) { 1248 gaim_prefs_get_bool("/core/logging/log_idle_state")) {
1249 GaimAccount *account = gaim_connection_get_account(gc); 1249 GaimAccount *account = gaim_connection_get_account(gc);
1250 GaimLog *log = gaim_account_get_log(account); 1250 GaimLog *log = gaim_account_get_log(account);
1251 char *tmp = g_strdup_printf(_("%s became unidle"), alias); 1251 char *tmp = g_strdup_printf(_("%s became unidle"), alias);
1252 1252
1253 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, gaim_get_buddy_alias(b), 1253 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, (alias ? alias : name),
1254 current_time, tmp); 1254 current_time, tmp);
1255 g_free(tmp); 1255 g_free(tmp);
1256 } 1256 }
1257 } 1257 }
1258 1258
1278 gaim_prefs_get_bool("/core/logging/log_signon_signoff")) { 1278 gaim_prefs_get_bool("/core/logging/log_signon_signoff")) {
1279 GaimAccount *account = gaim_connection_get_account(gc); 1279 GaimAccount *account = gaim_connection_get_account(gc);
1280 GaimLog *log = gaim_account_get_log(account); 1280 GaimLog *log = gaim_account_get_log(account);
1281 char *tmp = g_strdup_printf(_("%s signed off"), alias); 1281 char *tmp = g_strdup_printf(_("%s signed off"), alias);
1282 1282
1283 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, gaim_get_buddy_alias(b), 1283 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, (alias ? alias : name),
1284 current_time, tmp); 1284 current_time, tmp);
1285 g_free(tmp); 1285 g_free(tmp);
1286 } 1286 }
1287 } 1287 }
1288 1288

mercurial