]> jfr.im git - solanum.git/blobdiff - modules/m_privs.c
Move to ratbox3 reject and throttle code.
[solanum.git] / modules / m_privs.c
index 35c2f10e76d8862c9ffed3720dbf6b597ca75400..e4479f6ded8632f9c5641802d0530c52bc4d4294 100644 (file)
@@ -67,7 +67,6 @@ static struct mode_table oper_table[] = {
        {"remote",              OPER_REMOTE             },
        {"kline",               OPER_KLINE              },
        {"unkline",             OPER_UNKLINE            },
-       {"gline",               OPER_GLINE              },
        {"nick_changes",        OPER_NICKS              },
        {"rehash",              OPER_REHASH             },
        {"die",                 OPER_DIE                },
@@ -86,7 +85,6 @@ static struct mode_table oper_table[] = {
 /* there is no such table like this anywhere else */
 static struct mode_table auth_client_table[] = {
        {"resv_exempt",         FLAGS2_EXEMPTRESV       },
-       {"gline_exempt",        FLAGS2_EXEMPTGLINE      },
        {"kline_exempt",        FLAGS2_EXEMPTKLINE      },
        {"flood_exempt",        FLAGS2_EXEMPTFLOOD      },
        {"spambot_exempt",      FLAGS2_EXEMPTSPAMBOT    },
@@ -109,17 +107,17 @@ static void show_privs(struct Client *source_p, struct Client *target_p)
                if (target_p->flags2 & p->mode)
                {
                        if (buf[0] != '\0')
-                               strlcat(buf, " ", sizeof buf);
-                       strlcat(buf, p->name, sizeof buf);
+                               rb_strlcat(buf, " ", sizeof buf);
+                       rb_strlcat(buf, p->name, sizeof buf);
                }
                p++;
        }
        if (IsOper(target_p))
        {
                if (buf[0] != '\0')
-                       strlcat(buf, " ", sizeof buf);
-               strlcat(buf, "operator:", sizeof buf);
-               strlcat(buf, target_p->localClient->opername, sizeof buf);
+                       rb_strlcat(buf, " ", sizeof buf);
+               rb_strlcat(buf, "operator:", sizeof buf);
+               rb_strlcat(buf, target_p->localClient->opername, sizeof buf);
        }
        p = &auth_client_table[0];
        while (p->name != NULL)
@@ -127,8 +125,8 @@ static void show_privs(struct Client *source_p, struct Client *target_p)
                if (target_p->flags2 & p->mode)
                {
                        if (buf[0] != '\0')
-                               strlcat(buf, " ", sizeof buf);
-                       strlcat(buf, p->name, sizeof buf);
+                               rb_strlcat(buf, " ", sizeof buf);
+                       rb_strlcat(buf, p->name, sizeof buf);
                }
                p++;
        }