[NeoStats-Devel] New bot nick code

"M" <[email protected]>
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
I have made a few changes to the bot nick code. 

Firstly, I have optimised GetBotNick since the for/switch loop was overkill
for what was required since in the majority of cases, botnick should be
available and likely protected by qlines. 

Secondly, I have altered the generation routine to remove the unecessary
strlen calls it used and take this as a parameter. I am thinking this could
be a useful base for a general nickname generator we can expose to modules.
Might come in handy for SecureServ onjoin bots. 

Maybe something along the lines of ( nickstub, stublen, numbercount,
lettercount ) where nickstub is our base, stublen the length of the base,
numbercount the number of numbers we want to generate, 0 to disable and the
same for lettercount. Something to consider.

Mark.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.