Jump to content

Wikipedia talk:Requests for adminship/TawkerbotTorA/code

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is a purely technical note to the code: why not reset the counter to zero every time, so that the counter won't be huge after the number of blocks the account performs increases? Eventually, a huge integer will cause overflow errors and slow down the process. Instead:

int counter = 0;

            foreach (Match m in matches)
            {
                counter++;

                if (counter % 3 == 0) {
                    counter = 0;
                    if (ed.GetWikiText("User:Werdna/StopTBTA").Contains("Stop"))
                    {
                        return;
                } //more code...

Thanks! Flcelloguy (A note?) 18:53, 5 October 2006 (UTC)[reply]