aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorGustav HÃ¥llberg <gustav@gmail.com>2009-01-16 23:48:31 (GMT)
committerGustav HÃ¥llberg <gustav@gmail.com>2009-01-16 23:55:40 (GMT)
commit2a5b0cabaa1b2aba86e466cdc25486fa4c86e6cd (patch)
treeabf7e9f06878f125535f7d6c37864f10949bf123 /utils.c
parentb56e2c86f181c9b1d117c7cbff194130f730cb6f (diff)
downloadpowwow-2a5b0cabaa1b2aba86e466cdc25486fa4c86e6cd.zip
powwow-2a5b0cabaa1b2aba86e466cdc25486fa4c86e6cd.tar.gz
powwow-2a5b0cabaa1b2aba86e466cdc25486fa4c86e6cd.tar.bz2
added #addstatic command
Replaced old WORD_RETAIN function with separate, static list of words.
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/utils.c b/utils.c
index b904c1f..58478c7 100644
--- a/utils.c
+++ b/utils.c
@@ -1211,19 +1211,17 @@ int save_settings __P0 (void)
while (words[l = words[l].next].word)
;
while (words[l = words[l].prev].word && failed > 0) {
- if (~words[l].flags & WORD_RETAIN) {
- pp = ptrmescape(pp, words[l].word, strlen(words[l].word), 0);
- len = ptrlen(pp) + 1;
- if (cl > 4 && cl + len >= 80) {
- cl = 4;
- failed = fprintf(f, "\n");
- flag = 0;
- }
- if (failed > 0)
- failed = fprintf(f, "%s %s", flag ? "" : "#add", ptrdata(pp));
- cl += len;
- flag = 1;
- }
+ pp = ptrmescape(pp, words[l].word, strlen(words[l].word), 0);
+ len = ptrlen(pp) + 1;
+ if (cl > 4 && cl + len >= 80) {
+ cl = 4;
+ failed = fprintf(f, "\n");
+ flag = 0;
+ }
+ if (failed > 0)
+ failed = fprintf(f, "%s %s", flag ? "" : "#add", ptrdata(pp));
+ cl += len;
+ flag = 1;
}
if (failed > 0 && flag)
failed = fprintf(f, "\n");