- return (find(Config->ulines.begin(),Config->ulines.end(),server) != Config->ulines.end());
-}
-
-int operstrcmp(const char* data,const char* input)
-{
- int MOD_RESULT = 0;
- FOREACH_RESULT(I_OnOperCompare,OnOperCompare(data,input))
- log(DEBUG,"operstrcmp: %d",MOD_RESULT);
- if (MOD_RESULT == 1)
- return 0;
- if (MOD_RESULT == -1)
- return 1;
- log(DEBUG,"strcmp fallback: '%s' '%s' %d",data,input,strcmp(data,input));
- return strcmp(data,input);
-}
-
-long duration(const char* str)
-{
- char n_field[MAXBUF];
- long total = 0;
- n_field[0] = 0;
-
- if ((!strchr(str,'s')) && (!strchr(str,'m')) && (!strchr(str,'h')) && (!strchr(str,'d')) && (!strchr(str,'w')) && (!strchr(str,'y')))
- {
- std::string n = str;
- n += 's';
- return duration(n.c_str());
- }
-
- for (char* i = (char*)str; *i; i++)
+ float percent = ((float)matches / (float)this->Users->clientlist->size()) * 100;
+ if (percent > itrigger)