diff --git a/timeoutd.c b/timeoutd.c index 10603a3..6927908 100644 --- a/timeoutd.c +++ b/timeoutd.c @@ -1003,9 +1003,8 @@ void check_idle() if (!config[0]) return; /* no entries in config */ while (config[++aktconfigline] && aktconfigline >= 0) - if (strcmp(config[aktconfigline]->users, user) == 0 - || config[aktconfigline]->users[0] == '*') { - aktconfigline = -2; /* we found user or * in config, so he/they has/have restrictions */ + if (chkmatch(user, config[aktconfigline]->users)) { + aktconfigline = -2; /* we found user in config, so he/they has/have restrictions */ break; }