Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Jun 22, 2024
1 parent 3e6d5f6 commit eb04aa8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mod/share.mod/uf_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ static void uf_features_parse(int idx, char *par)
dcc[idx].u.bot->uff_flags = 0;

/* Parse string */
for (feature = strtok_r(buf, " $:", &brkt);
for (feature = strtok_r(buf, " ", &brkt);
feature;
feature = strtok_r(NULL, " $:", &brkt)) {
feature = strtok_r(NULL, " ", &brkt)) {
/* Is the feature available and active? */
ul = uff_findentry_byname(feature);
if (ul && (ul->entry->ask_func == NULL || ul->entry->ask_func(idx))) {
Expand Down Expand Up @@ -293,9 +293,9 @@ static int uf_features_check(int idx, char *par)
dcc[idx].u.bot->uff_flags = 0;

/* Parse string */
for (feature = strtok_r(buf, " $:", &brkt);
for (feature = strtok_r(buf, " ", &brkt);
feature;
feature = strtok_r(NULL, " $:", &brkt)) {
feature = strtok_r(NULL, " ", &brkt)) {
/* Is the feature available and active? */
ul = uff_findentry_byname(feature);
if (ul && (ul->entry->ask_func == NULL || ul->entry->ask_func(idx)))
Expand Down

0 comments on commit eb04aa8

Please sign in to comment.