comparison src/gaimrc.c @ 940:9fca1293f871

[gaim-migrate @ 950] Patches from kylev committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sun, 01 Oct 2000 00:20:03 +0000
parents f3c23b3c1ed7
children fa681641643d
comparison
equal deleted inserted replaced
939:69955d88ab42 940:9fca1293f871
205 a = g_new0(struct away_message, 1); 205 a = g_new0(struct away_message, 1);
206 206
207 g_snprintf(a->name, sizeof(a->name), "%s", p->value[0]); 207 g_snprintf(a->name, sizeof(a->name), "%s", p->value[0]);
208 g_snprintf(a->message, sizeof(a->message), "%s", p->value[1]); 208 g_snprintf(a->message, sizeof(a->message), "%s", p->value[1]);
209 filter_break(a->message); 209 filter_break(a->message);
210 away_messages = g_list_append(away_messages, a); 210 away_messages = g_slist_append(away_messages, a);
211 } 211 }
212 } 212 }
213 } 213 }
214 214
215 static void gaimrc_write_away(FILE *f) 215 static void gaimrc_write_away(FILE *f)
216 { 216 {
217 GList *awy = away_messages; 217 GSList *awy = away_messages;
218 struct away_message *a; 218 struct away_message *a;
219 219
220 fprintf(f, "away {\n"); 220 fprintf(f, "away {\n");
221 221
222 if (awy) 222 if (awy)
233 233
234 /* escape_text2 uses malloc(), so we don't want to g_free these */ 234 /* escape_text2 uses malloc(), so we don't want to g_free these */
235 free(str1); 235 free(str1);
236 free(str2); 236 free(str2);
237 237
238 awy = awy->next; 238 awy = g_slist_next(awy);
239 } 239 }
240 } 240 }
241 else 241 else
242 fprintf(f, "\tmessage { boring default } { %s }\n", BORING_DEFAULT_AWAY_MSG); 242 fprintf(f, "\tmessage { boring default } { %s }\n", BORING_DEFAULT_AWAY_MSG);
243 243
668 g_list_free(aim_users); 668 g_list_free(aim_users);
669 aim_users = NULL; 669 aim_users = NULL;
670 } 670 }
671 if (away_messages) 671 if (away_messages)
672 { 672 {
673 g_list_free(away_messages); 673 g_slist_free(away_messages);
674 away_messages = NULL; 674 away_messages = NULL;
675 } 675 }
676 } 676 }
677 677
678 general_options = 678 general_options =