]> jfr.im git - irc/atheme/atheme.git/commitdiff
libathemecore/ptasks.c: handle_stats(): use consistent case labels
authorAaron Jones <redacted>
Tue, 18 Jan 2022 12:13:08 +0000 (12:13 +0000)
committerAaron Jones <redacted>
Sat, 22 Jan 2022 17:02:55 +0000 (17:02 +0000)
Some of the case labels were uppercase followed by lowercase,
some of them were the other way around. Use a consistent scheme.

libathemecore/ptasks.c

index 3bf8ad00726afad5f07c8f20f39d9d715a3aeee7..007c65528739fe046102919003549e5046e4c129 100644 (file)
@@ -121,6 +121,7 @@ handle_stats(struct user *u, char req)
 
        if (floodcheck(u, NULL))
                return;
+
        logcommand_user(NULL, u, CMDLOG_GET, "STATS: \2%c\2", req);
 
        switch (req)
@@ -167,8 +168,8 @@ handle_stats(struct user *u, char req)
 
                  break;
 
-         case 'f':
          case 'F':
+         case 'f':
                  if (!has_priv_user(u, PRIV_SERVER_AUSPEX))
                          break;
 
@@ -193,8 +194,8 @@ handle_stats(struct user *u, char req)
                  break;
 
 #ifdef OBJECT_DEBUG
-         case 'j':
          case 'J':
+         case 'j':
                  MOWGLI_ITER_FOREACH(n, object_list.head)
                  {
                          struct atheme_object *obj = n->data;
@@ -220,8 +221,8 @@ handle_stats(struct user *u, char req)
 
                  break;
 
-         case 'o':
          case 'O':
+         case 'o':
                  if (!has_priv_user(u, PRIV_VIEWPRIVS))
                          break;
 
@@ -295,8 +296,8 @@ handle_stats(struct user *u, char req)
                                  timediff(CURRTIME - curr_uplink->conn->first_recv));
                  break;
 
-         case 'q':
          case 'Q':
+         case 'q':
                  if (!has_priv_user(u, PRIV_MASS_AKILL))
                          break;
 
@@ -312,8 +313,8 @@ handle_stats(struct user *u, char req)
 
                  break;
 
-         case 'x':
          case 'X':
+         case 'x':
                  if (!has_priv_user(u, PRIV_MASS_AKILL))
                          break;
 
@@ -329,8 +330,8 @@ handle_stats(struct user *u, char req)
 
                  break;
 
-         case 'y':
          case 'Y':
+         case 'y':
                  if (!has_priv_user(u, PRIV_SERVER_AUSPEX))
                          break;