Browse Source

This can be const

Bryan Drewery 7 years ago
parent
commit
7ea7c4d9b0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/mod/server.mod/server.cc

+ 2 - 2
src/mod/server.mod/server.cc

@@ -171,8 +171,8 @@ static const struct {
  *     Bot server queues
  */
 static bool burst_mode_ok(const char *msg, size_t len) {
-  bd::String mode(msg, len);
-  bd::Array<bd::String> list(mode.split(' '));
+  const bd::String mode(msg, len);
+  const auto list(mode.split(' '));
   if (list.length() == 2) return 1;
   if (list.length() == 3) {
     if (!strchr(CHANMETA, bd::String(list[1]).at(0))) return 1;