Branch: Tag:

2003-08-07

2003-08-07 14:20:19 by Martin Nilsson <mani@lysator.liu.se>

Don't user search for has_value

Rev: lib/modules/Calendar.pmod/Events.pmod:1.15
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.30
Rev: lib/modules/Calendar.pmod/mkrules.pike:1.9

28:    "\"%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]"