X-Git-Url: https://git.hcoop.net/clinton/bobotpp.git/blobdiff_plain/c7d9fb19c989ca8ab1bc2f34b57d2450518fd21e..81e08cc03b2e2f600c336a59fde87ce41dd144b0:/ChangeLog diff --git a/ChangeLog b/ChangeLog index 4c43ab6..8bce87d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,468 @@ +2005-06-29 Clinton Ebadi + + * configure.ac: Release 2.1.8 + Change version to 2.1.9CVS + + * source/Parser.C: Include Commands.H (fixes --disable-scripting build) + + * source/Bot.C (Bot): Fix to make a --disable-scripting build work + + * bobot++.texinfo (Configuration): Swapped order of config file + placement and config files + (User Levels): users not found in the user list *can* execute + commands as bot:user-none now. + (Low Level Message Functions): Changed a few @code{}s to @var{}s + +2005-06-28 Clinton Ebadi + + * bobot++.texinfo: @vskip Opt... => @vskip 0pt... + + * source/Main.C (namespace): Added debug-scripts option + + * source/Parser.C (parseCTCP): Hook::ACTION is now passed + from->getNick () instead of from->getAddress () (consistency fix) + + * source/Main.C: Merged error handling patch from dsmith + + * source/Parser.C: Merged error handling + patch from dsmith + + * source/Interp.H: Merged error handling patch from dsmith + + * source/Interp.C (lazy_handler): Merged error handling patch from + dsmith + + * source/BotInterp.H: Merged error handling patch from dsmith + + * source/BotInterp.C: Merged error handling patch from dsmith + + * bobot++.texinfo (Low Level Message Functions): Documented + bot:send-ctcp-reply + + * source/Parser.C (parseCTCP): Converted to use Commands::CTCPReply + + * source/Interp.C (interp_init_helper): Bound bot:send-ctcp-reply + in scheme + + * bobot++.texinfo (Low Level Message Functions): + s/bot:send-CTCP/bot:send-ctcp/ + + * source/Interp.C (interp_init_helper): Renamed bot:send-CTCP to + bot:send-ctcp + + * source/ScriptCommands.H: Uncommented sendCTCPReply prototype + + * source/ScriptCommands.C (sendCTCP): Convert to use Commands::CTCP + (sendCTCPReply): Added + + * source/Parser.C (parseJoin): Convert to use Commands::CTCP + + * source/Commands.C (CTCP): Implemented + (CTCPReply): Implemented + (Action): Convert to use Commands::CTCP + + * source/Commands.H: Added CTCP (bot, target, command, message) + Added CTCPReply (bot, target, command, message) + +2005-06-27 Clinton Ebadi + + * examples/bot.conf (maxnicklength): Update example config + + * source/Utils.C (valid_nickname_p): Use b->MAX_NICKLENGTH + + * source/Bot.C (readConfig): Look for MAXNICKLENGTH parameter + + * source/Bot.H: Added MAX_NICKLENGTH member + + * source/Utils.H (valid_nickname_p): Now takes Bot* as first argument + + * source/Commands.C (Msg): Send multiple PRIVMSGs when a message + is multiple lines + + * source/UserCommands.C (SetVersion): Convert to use Commands::Notice + + * source/Commands.C (Notice): Send multiple NOTICEs when a message + is multiple lines + +2005-06-25 Clinton Ebadi + + * source/Main.C (real_main): Enable Guile debugging mode when + --debug is used + + * source/Interp.C (interp_post_startup_helper): Return + SCM_UNSPECIFIED instead of 0 + +2005-06-24 Clinton Ebadi + + * All: Updated FSF street address + + * source/Commands.C (Msg): Move body of Say to an if inside of this + (Say): Just call Msg + + * source/ScriptCommands.C (sendNotice): Returns error code instead + of just #t or #f + + * source/Commands.C (Say): Check to make sure target is a channel + (Msg): Extended to send messages to channels + +2005-06-23 Clinton Ebadi + + * scripts/bot.scm: Added file ((bobotpp bot) module for other + modules to gain access to bobot++ interface) + + * source/Commands.C (Notice): Commented out check/abort if target + is a channel (there doesn't seem to be a reason for this to not work) + + * source/Interp.C (interp_init_helper): Register bot:notice with scheme + + * bobot++.texinfo (High Level Message Functions): Document bot:notice + + * source/Message.H: Added operator== to Message (tests for error + code equality) + + * source/Commands.C: Removed message type macros + + * source/Message.H: Moved message type macros to Message.H + + * source/ScriptCommands.C (sendNotice): Implemented sendNotice + + * source/ScriptCommands.H: Uncomment sendNotice + + * source/Bot.C (waitForInput): Use %02d when formatting + Hooks::TIMER argument instead of %2d, and switch to snprintf to + enforce max length + + * bobot++.texinfo (Hooks): Clarified intro text about hooks (order + of processing). + + * source/Bot.C (run): Added call to Hooks::DISCONNECT + (hooks/disconnect) when the bot is disconnected from the server + + * bobot++.texinfo: Applied documentation patch from Dale P. Smith + (Hook Types): Added hooks/disconnect argument + +2005-06-06 Clinton Ebadi + + * bobot++.texinfo: Change @vskip 0 to @vskip 0pt to make this work + again (thanks dsmith) + +2005-06-01 Clinton Ebadi + + * source/Interp.C (interp_init_helper): Added + bot:protection/[none|ban|kick|deop] constants to Scheme + (interp_init_helper): Added bot:aop/[yes|no] constants + +2005-05-31 Clinton Ebadi + + * configure.ac: Release Bobot++ 2.1.7 + Changed version to 2.18.CVS + + * source/UserList.C (save): Remove workaround for BUG #2 + + * source/Parser.C (parse001): make realNick lowercase when doing + the comparison to bot->nickName to prevent pushing a second copy + of the bot onto the userlist (closes BUG #2) + + * source/Bot.C (Bot): cleaned up constructor + (waitForInput): replaced gh_list with scm_list_n + + * source/UserList.C: Cleaned up some formatting + + * source/Main.C: Formatted code more cleanly + (real_main): changed a few Strings to std::strings + + * source/String.C (operator): Made index signed again, it's not + worth fixing this warning + + * source/Bot.C: Add casts to make this compile with unsigned int + as operator[] in String + + * source/String.C (operator): Made index unsigned + + * source/Utils.C: Made a few things unsigned to kill warnings + + * source/Socket.C (readLine): Made pos unsigned + + * source/Bot.C (Bot): Fixed initializer list order to kill warnings + + * source/BotInterp.C (RunTimers): Removed unused variable (Timer *t) + + * source/StringTokenizer.C (count_tokens): Changed return type to + unsigned int + (more_tokens_p): Made counter unsigned + + * source/StringTokenizer.H (class StringTokenizer): Made pos + std::string::size_type instead of int + + * source/Commands.C (TBan): Returns Ok is the ban is done instead + of falling off the end (oops) + + * source/BotInterp.H: Add general catch case (false) + +2005-03-11 Clinton Ebadi + + * configure.ac: Release 2.1.6 + Changed version to 2.1.7CVS + +2005-02-28 Clinton Ebadi + + * source/Parser.C (parseLine): use map<>::find and an iterator to + find the IRC command instead of map<>::operator[] to avoid a + potential segfault + + * source/Bot.C (waitForInput): Removed commented out code + + * source/Socket.C (readLine): return String (buf.c_str ()) instead + of String (buf) so that only the buffer up to the first null is returned + (readLine): Added a comment explaining the usage of buf + (readLine): Changed type of length (std::string::size_type instead + of std::size_t) + + * source/String.C: Reimplemented String on top of std::string to + fix a few bugs and potential memory leaks + (toLower): use Utils::to_lower + (toUpper): Use Utils::to_upper + (trim): Use Utils::trim_str + + * source/String.H: removed srep, replaced it with a std::string (my_string) + + * source/Utils.C (to_upper): Applied patch from Jos Hulzink + + (trim_str): Appled patch from Jos Hulzink (fixes + counters and substr call) + + * source/StringTokenizer.C (next_token): Applied patch from Jos + Hulzink (fixes substr call) + (rest): Applied patch from Jos Hulzink (fixes + substr call) + +2005-02-27 Clinton Ebadi + + * source/Bot.H (COPYRIGHT_STRING): Remove Michael Wilson because + he is a lazy bum and never submitted the String replacing patch + +2005-01-23 Clinton Ebadi + + * configure.ac: Remove CC++ test + Changed version to 2.1.6CVS (2.1.5 released) + + * bobot++.texinfo: Updated copyright + +2005-01-16 Clinton Ebadi + + * TODO (General): Added TODO items + (2.2): Moved a few items here from 2.4 + + * README (NOTE): Mention boost requirement + +2005-01-13 Clinton Ebadi + + * ChangeLog Updated copryight + + * source/User.H: Removed forward declaration of Utils + + * source/Bot.H: Removed forward declaration of Utils + + * source/ChannelList.H: Removed forward declaration of Utils + + * source/UserListItem.H: Removed forward declaration of Utils + + * source/Utils.H: Removed class Utils, replaced with a namspace + (it only contained static methods) + + * source/Bot.H (COPYRIGHT_STRING): Added 2005 and Michael Wilson + (he is replacing String) + +2005-01-12 Clinton Ebadi + + * source/BotConfig.C (set_option_value): Put watcher calling + inside of if (cf_iter != end()) to fix a segfault (if the cf_iter + = end then there are no watchers since this is a new value and + references cf_iter->second segfaults) + + * source/Utils.C (trim_str): Fixed bug (last non-space character + was being cut off) + + * source/BotConfig.C (read_config): Made to use set_option_value + instead of manipulating options_db directly + + * source/BotConfig.H (class BotConfig): Add set_option_value that + takes a t_value instead of t_value_list (most uss of + set_option_value will be to add a single value so this is very useful) + + * source/BotConfig.C (set_option_value): Implemented + + * source/UserList.C: Made to work with new Utils/StringTokenizer names + + * source/UserCommands.C: Made to work with new + Utils/StringTokenizer names + + * source/ShitList.C: Uses Utils.H now (Utils::trim_str & friends) + +2005-01-11 Clinton Ebadi + + * source/ShitList.C: Made to work with new StringTokenizer names + + * source/ServerQueueItem.C: Made to work with new StringTokenizer names + + * source/ServerQueue.C: Made to work with new Utils names + + * source/ScriptCommands.C: Made work with new Utils names + + * source/Person.C (getNick): Made work with new Utils names + + * source/String.H: Added substr prototypes + + * source/String.C (substr): Added substr as an alias of subString + (for compat with std::string before the transition) + + * source/Parser.C: Made to work with new Utils/StringTokenizer names + + * source/DCCParser.C: Made to work with new Utils names + + * source/DCCChatConnection.C: Made to work new Utils names + + * source/Commands.C: Made to work with new Utils names + + * source/Channel.C: Made to work with new Utils names + + * source/BotInterp.C: Made to work with new Utils + + * source/Bot.C: Made to work with new Utils/StringTokenizer names + + * source/String.C (operator=): Unremoved operator=(std::string) + + * source/String.H: Unremoved operator=(std::string) + + * source/BotConfig.C (read_config): Use Utils::trim_str + + * source/String.C (trim): Fixed bug (p->s[i] == '\r', s/i/j/) + + * source/Utils.C (trim_str): Implemented + + * source/Utils.H: Added tim_str (replaces String::trim) + + * source/BotConfig.C: Made everything work with new + StringTokenizer and Utils names + + * source/Utils.H: Added to_lower + Added to_upper + + * source/StringTokenizer.C (rest): uses std::isspace instead of + checking st[pos] against ' ' and '\t' + + * source/StringTokenizer.H: Removed CamelCasing + Renamed hasMoreTokens to more_tokens_p + + * source/StringTokenizer.C: Converted to use std::string + + * source/StringTokenizer.H: Converted to use std::string + + * source/String.C: Removed operator=(std::string) + + * source/String.H: Removed operator=(std::string) + + * source/Utils.C: Added copyright + Reformatted to match GNU coding standard more closely + Converted everything to use std::string + (get_nick): Renamed from getNick + (get_userhost): Renamed from getUserHost + (get_key): Renamed from getKey + (IP_p): Renamed from isIP + (make_wildcard): Renamed from makeWildcard + (channel_p): Renamed from isChannel + (wildcard_p): Renamed from isWildcard + (valid_channel_name_p): Renamed from isValidChannelName + (valid_nickname_p): Renamed from isValidNickName + (get_level): Renamed from getLevel + (str2time): Renamed from strToTime + (str2time): Fixed potential buffer overflow (num[512] => std::string) + (level2str): Renamed from levelToStr + (prot2str): Renamed from protToStr + (bool2str): Renamed from boolToStr + (long2str): Implemented + (scm2str): Renamed from scm2String + (str2scm): Renamed from string2SCM + + * source/BotConfig.C: Reformatted to fit GNU coding style more closely + + * source/Utils.H: Added long2str (long int -> std::string) + + * source/String.H: Added 2003 copyright (the year I last modified + it in) + + * source/String.C: Added 2002 copyright (the year I last modified + it in) + + * source/Utils.H: Updated Copyright + s/String/std::string/g + Removed camel casing and is* = *_p + xToY = x2y + + * source/BotConfig.C: Updated Copyright + + * source/BotConfig.H: Updated copyright + +2005-01-08 Clinton Ebadi + + * source/BotConfig.C (set_option_value): Take care of the case + where key is not already in the db + (add_watcher): Implemented + (read_config): Removed ',' token parsing (not needed) + + * configure.ac: Add AC_LANG([C++]) so we can check for C++ libs + AC_CHECK_LIB ccgnu2 (CommonC++2) + + * README: Updated README (reformatted, adding info, etc.) + +2005-01-07 Clinton Ebadi + + * source/BotConfig.C (set_option_value): call watcher list + (run_fun_): Added to support watcher list calling + +2005-01-06 Clinton Ebadi + + * source/BotConfig.C (set_option_value): Fuck you STL + (push_back_): Reimplemented so that it doesn't need std::bind1st + because the STL is being stupid + +2004-12-26 Clinton Ebadi + + * source/BotConfig.C (read_config): Implemented properly + (get_option_values): Implemented properly + (set_config_file): Fixed + +2004-07-10 Clinton Ebadi + + * bobot++.texinfo (Built-In Commands): Added empty stubs to the + list of commands + +2004-06-22 Clinton Ebadi + + * source/BotConfig.C: New file (implementation of configuration database) + + * source/BotConfig.H: New File (semi-generic configuration database) + +2004-06-17 Clinton Ebadi + + * bobot++.texinfo (Starting the Bot): New section + +2004-06-14 Clinton Ebadi + + * bobot++.texinfo (Protection): Added Section + (User Levels): Rewrote section to be useful + (bot.users): Added section + 2004-06-12 Clinton Ebadi + * source/DCCChatConnection.C (connect): Checks to make sure the + person initiating a DCC CHAT with the bot is at least a FRIEND of + the bot. + + * README: Fixed a typo + * scripts/bobot-utils.scm (ctcp-quote): Implemented ctcp-quote + (bot:ctcp-quote): Renamed ctcp-quote to bot:ctcp-quite (whoops) 2004-05-28 Clinton Ebadi @@ -435,6 +897,6 @@ * source/Queue.C: Didn't notice iostream.h here! Fixed -Copyright 2002,2003,2004 Clinton Ebadi +Copyright 2002,2003,2004,2005 Clinton Ebadi Copying and distribution of this file, with or without modification, are permitted provided the copyright notice and this notice are preserved.