pike.git / lib / modules / Calendar.pmod / Events.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Events.pmod:21:    string id;    string flags;    string s;    string rule;       if (sscanf(source, "%*[ \t]Event%*[ \t]"    "\"%[^\"]\"%*[ \t]%[-a-z]%*[ \t]"    "\"%s\"%*[ \t]%[^\n]",    id,flags,s,rule)!=9)    error("Events: rule error; unknown format:\n%O\n",source); -  if (search(rule,"\"")!=-1) +  if (has_value(rule, "\""))    {    if (sscanf(source, "%*[ \t]Event%*[ \t]"    "\"%[^\"]\"%*[ \t]%[-a-z]%*[ \t]"    "\"%s\n",    id,flags,s)!=7)    error("Events: rule error; unknown format:\n%O\n",source);    sscanf(replace(s,"\\\"","»»»1902318231»»»"),    "%s\"%*[ \t]%s",s,rule);    s=replace(s,"»»»1902318231»»»","\"");    }