Sfoglia il codice sorgente

bot_counters can be static

Bryan Drewery 8 anni fa
parent
commit
0e27e17bbf
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/mod/irc.mod/irc.cc

+ 1 - 1
src/mod/irc.mod/irc.cc

@@ -91,7 +91,7 @@ static bool ban_fun = 1;
 static bool prevent_mixing = 1;  /* To prevent mixing old/new modes */
 bool include_lk = 1;      /* For correct calculation
                                  * in real_add_mode. */
-bd::HashTable<bd::String, unsigned long> bot_counters;
+static bd::HashTable<bd::String, unsigned long> bot_counters;
 unsigned long my_cookie_counter = 0;
 
 static bd::Queue<bd::String> chained_who;