]> jfr.im git - solanum.git/blobdiff - extensions/hurt.c
Merge pull request #288 from edk0/umode-o-split
[solanum.git] / extensions / hurt.c
index 086557219af55789cb6fc307b7c470b5336f6d71..2baf3c58c4adbaa0fc171a87e568006c346c6bf6 100644 (file)
@@ -470,9 +470,9 @@ doing_stats_hook(hook_data_int *hdata)
        source_p = hdata->client;
        if(hdata->arg2 != (int) 's')
                return;
-       if((ConfigFileEntry.stats_k_oper_only == 2) && !IsOper(source_p))
+       if((ConfigFileEntry.stats_k_oper_only == 2) && !IsOperGeneral(source_p))
                return;
-       if ((ConfigFileEntry.stats_k_oper_only == 1) && !IsOper(source_p))
+       if ((ConfigFileEntry.stats_k_oper_only == 1) && !IsOperGeneral(source_p))
        {
                hurt = hurt_find(source_p->sockhost);
                if (hurt != NULL)
@@ -576,7 +576,7 @@ hurt_find_exact(const char *ip)
        {
                hurt = (hurt_t *) ptr->data;
 
-               if (!strcasecmp(ip, hurt->ip))
+               if (!rb_strcasecmp(ip, hurt->ip))
                        return hurt;
        }