46
Botdev / Re: Creating BNX clone for IRC
« on: September 16, 2012, 11:12:17 am »Well, I setup all the callbacks for all word commands and I setup automatic nickname handling (collision and in-use sorts of issues).Convert them to regular expressions.
I also found RFC 2812 and added more #defines for newer RPL and ERR numerics.
I'm thinking about how to implement the BNX wildcards. Here's a snippit from BNX.TXTQuote? * - matches 0 or more characters of any typeUNIX-like systems usually provide fnmatch(3) which only covers * and ?.
? ? - matches exactly one character of any type
? % - matches any number of non-space characters
? ~ - matches at least one space character
? \ - the literal escape character
This sort of wildcard matching will also need to be implemented for the access system anyway (for hostmasks).
I'm also thinking about easy and portable configuration file formats. INI seems to be very simple and sufficiently flexible for this application. There is even a library called iniparser.
Any comments?