Removed mmdelim[12], which were the delimiters for MMDF-style mail drops.
[mmh] / sbr / seq_add.c
index d8f019a..5d0987c 100644 (file)
@@ -30,17 +30,17 @@ seq_addsel(struct msgs *mp, char *cp, int public, int zero)
                return 0;
 
        /*
-       ** We keep mp->curmsg and "cur" sequence in sync.
+       ** We keep mp->curmsg and cur sequence in sync.
        ** See seq_list() and seq_init().
        */
-       if (!strcmp(current,cp))
+       if (strcmp(seq_cur, cp)==0)
                mp->curmsg = mp->hghsel;
 
        /*
        ** Get the number for this sequence
        */
        for (i = 0; mp->msgattrs[i]; i++) {
-               if (!strcmp(mp->msgattrs[i], cp)) {
+               if (strcmp(mp->msgattrs[i], cp)==0) {
                        new_seq = 0;
                        break;
                }
@@ -122,16 +122,16 @@ seq_addmsg(struct msgs *mp, char *cp, int msgnum, int public, int zero)
                return 0;
 
        /*
-       ** keep mp->curmsg and msgattrs["cur"] in sync - see seq_list()
+       ** keep mp->curmsg and msgattrs[] of seq_cur in sync - see seq_list()
        */
-       if (!strcmp(current,cp))
+       if (strcmp(seq_cur, cp)==0)
                mp->curmsg = msgnum;
 
        /*
        ** Get the number for this sequence
        */
        for (i = 0; mp->msgattrs[i]; i++) {
-               if (!strcmp(mp->msgattrs[i], cp)) {
+               if (strcmp(mp->msgattrs[i], cp)==0) {
                        new_seq = 0;
                        break;
                }