- if (type != SEARCHTYPE_CHANNEL) {
- parseError = "authedpct: this function is only valid for channel searches.";
- return NULL;
- }
-
- if (argc!=1) {
- parseError="authedpct: usage: (authedpct number)";
- return NULL;
- }
-
- if (!(localdata=(struct authedpct_localdata *)malloc(sizeof(struct authedpct_localdata)))) {
- parseError = "malloc: could not allocate memory for this search.";
- return NULL;
- }
-
- localdata->pct = strtoul(argv[0],NULL,10);
-