]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/ircd_parser.y
Remote d:lines implementation (based on ircd-seven's r230 by spb, Stephen Bennett...
[irc/rqf/shadowircd.git] / src / ircd_parser.y
index 0f80617f018d128eb0306948c7288e5e9e159b4d..dbb834fbecc0081c9ab52f0c172f5309509a41fe 100644 (file)
@@ -152,7 +152,7 @@ static void add_cur_list(int type, char *str, int number)
                break;
        case CF_STRING:
        case CF_QSTRING:
-               DupString(new->v.string, str);
+               new->v.string = rb_strdup(str);
                break;
        }
 
@@ -255,7 +255,7 @@ oneitem: qstring
             {
                $$ = rb_malloc(sizeof(conf_parm_t));
                $$->type = CF_QSTRING;
-               DupString($$->v.string, $1);
+               $$->v.string = rb_strdup($1);
            }
           | timespec
             {
@@ -285,7 +285,7 @@ oneitem: qstring
                else
                {
                        $$->type = CF_STRING;
-                       DupString($$->v.string, $1);
+                       $$->v.string = rb_strdup($1);
                }
             }
           ;