[project @ 2005-06-23 06:20:44 by unknown_lamer]
[clinton/bobotpp.git] / NEWS
1 (-*- text -*-)
2 User Visible Changes In Bobot++
3
4 IMPORTANT NOTES:
5 As of version 1.98 unknown_lamer is the new maintainer. Also as of
6 version 1.98, you must have Guile 1.5.6+ or 1.6.x in order to
7 compile scripting support.
8
9 =====================================================================
10 ====== The News =====================================================
11 =====================================================================
12
13 Version 2.1.8:
14 - Added bot:protection/[none|ban|kick|deop] and bot:aop/[yes|no]
15 constants to the Scheme scripting interface
16
17 Version 2.1.7:
18 - Fixed a number of small bugs and corner cases
19 - Should compile without warnings (GCC 3.4)
20
21 Version 2.1.6:
22 - The String class implementation has been redone and replaced by one
23 based on std::string (eventually String will be gone entirely, but
24 it a lot of work)
25 - Patches from Jos Hulzink <josh@stack.nl> were applied which fix a
26 few major bugs in the StringTokenizer (thanks)
27
28 Version 2.1.5: Cleanups
29 - A DCC CHAT with the bot may now only be initiated if the user is a
30 Friend of the bot
31 - Implemented bot:ctcp-quote
32 - The Bot Configuration section of the manual has been completed.
33 - Fixed a potential (but unlikely) buffer overflow in Utils::strToTime
34 (if there were more than 512 digits in part of the string form of
35 the time the buffer would overflow)
36 - Misc. Bugfixes
37
38 Version 2.1.4: DCC Support Enhancements
39 - Internal Change: DCCConnection is now an abstract class
40 - Internal Change: DCCChatConnection provides the functionality of
41 the old DCCConnection so that DCC FILE support can be added
42 - New Scheme Procedure: (bot:sent-to-me? message), checks to see if a
43 message was addressed to the bot. This is better than using
44 bot:match-to-me because the hook will continue to function if the
45 bot's nick changes. The only downside to using it is that there may
46 be an increased overhead of calling more hooks than could be called,
47 but that shouldn't be much of a problem.
48 - New Scheme Procedure: (bot:change-command-level command level),
49 changes the level a user command to allow a user of `level' level or
50 above to run it.
51
52 Version 2.1.3: Something
53 - The flood rate can now be set using !setfloodrate INTEGER. The
54 default is two messages per second before the bot will ignore
55 you. (thanks to Björn Gustavsson for requesting this)
56 - The flood rate may also be set from Scheme using (bot:setfloodrate
57 integer)
58 - A very large crash bug has been fixed. Previously, if an undefined
59 command was called, any attempts to call a subsequent command would
60 cause the bot to crash. Now the bot doesn't crash.
61
62 Version 2.1.2: Llama
63
64 - match-to-me and match-not-channel are now bot:match-to-me and
65 bot:match-not-channel. Just use perl -pi -e
66 "s/match-to-me/bot:match-to-me" SCRIPTS (change to match-not-channel
67 for match-not-channel).
68 - Each script is now loaded into its own module so namespace clashes
69 should no longer occur
70 - New procedure: (bot:load-module INTERFACE-SPEC) will load a "bot
71 module" with the specified INTERFACE-SPEC (e.g. (foo bar)). A bot
72 module is the same as a system module except that you don't use
73 define-module to define it. The %bot:loadpath is searched for
74 INTERFACE-SPEC (when converted to a string) with an extension in
75 %bot:load-extensions. E.g. (foo bar) becomes "foo/bar".
76 - New procedure: (bot:use-module INTERFACE-SPEC) is the same as
77 bot:load-module except it will make the exported bindings from
78 INTERFACE-SPEC available in the current-module.
79 - Updated example bot and new example scripts included with the bot.
80
81 Version 2.1.1: foom
82
83 - Host masks are now case insensitive when matched. At least one other
84 person thought this was a good idea since IRC is case preserving but
85 not case sensitive.
86 - You can now "name" a hook using an extra arg to bot:addhook. This
87 name can be used to have multiple hooks of the same type with the
88 same regexp. The default name is "DEFAULT" so don't use that as the
89 name for your hooks.
90 - Logging now works again (oops, I didn't realize I broke it until I
91 started to work on DCC).
92 - DCC CHAT now "works." You can connect to the bot and talk to to it
93 and use Scheme hooks to talk to the user.
94 - New hooks: hooks/dcc/chat-begin and hooks/dcc/chat-message. These
95 are called when a new DCC Chat begin and when the user sends a
96 message.
97 - New Function: bot:dcc-chat-send TO MESSAGE, sends a MESSAGE to the
98 person at address TO
99 - New hooks: hooks/send/... where ... is one of action, ctcp, public,
100 or message. These are triggered when the bot does an
101 ACTION, sends a CTCP (_not_ a ctcp-reply), sends a PRIVMSG to a
102 channel, or sends a PRIVMSG to another user, respectively. There
103 will be more send hooks added later.
104 - New hooks: hooks/dcc/chat-begin and
105 hooks/dcc/chat-message. chat-begin is called when the chat starts
106 and has one argument: the address (in user!nick@host
107 format). chat-message has two arguments: from (user!nick@host) and
108 message, which is the raw message (since there is no real protocol
109 for DCC). chat-start hooks are matched against the address and
110 chat-message hooks are matched against the text "ADDRESS MESSAGE"
111 where ADDRESS is the sender's address and MESSAGE is the message.
112
113 Version 2.1.0: Zug Zug
114 - Hooks can now be fallthrough or non fallthrough. You can set a hooks
115 priority and whether or not it falls through (i.e. continues hook
116 matching after it has been executed) using two optional args to
117 (bot-addhook). The new args are pri (integer priority) and fallthru
118 (#t or #f) and are at the end. Higher priority hooks are executed
119 before lower priority hooks, and fallthrough hooks are executed
120 before non-fallthrough hooks.
121 - The default config is read from ~/.bobotpp/config/default/ or
122 /etc/bobotpp/default/ if the user config is not found. Put your
123 default config in either dir. You may also specify a specific config
124 under these dirs using the --config or -c arg to bobotpp (see
125 bobotpp --help for the full list of commands you may use and how to
126 use them).
127 - Scripts are now stored in ~/.bobotpp/scripts/ or
128 PREFIX/share/bobotpp/scripts/ (where PREFIX is /usr/local unless you
129 changed it with the --prefix arg to configure). The new function
130 bot-load will take a filename and load it from these dirs, returning
131 #t if the file was loaded and #f if it wasn't. You can modify the
132 search list by appending to %bot-loadpath.
133 - bobot-utils.scm is now autoloaded, so you don't need to
134 load it if you want to use its functions.
135 - Logs are now in ~/.bobotpp/logs/
136 - bot-* procedures in Scheme are now bot:*. The old bot-* functions
137 are defined as aliases in bobot-utils.scm
138 - You can now use lambda's for new commands (oops, I wasn't protecting
139 the objects from garbage collection)
140
141
142 Version 2.0: Stable release / CVS merges
143 - Merged stuff from Etienne Bernard's dev tree that he was working on
144 before I took over (not much)
145 - bot-adduser and bot-addshit now work from Scheme
146
147 Version 1.99: Configure joy
148 - You can now disable scripting using --disable-scripting or
149 --enable-scripting=no
150 - Crypt can also be disabled with --disable-crypt or --enable-crypt=no
151 - Old hooks behavior has been restored (new hooks are added to the end
152 of the hooks list and processing does not stop at the first matched
153 hook). The hook behavior will change radically in 2.1.
154
155 Version 1.98: Unknown_lamer made a large number of changes
156 - Code is now ISO C++ and compiles with GCC 3.1
157 - Converted makefile system to use automake
158 - configure.ac now requires autoconf 2.50 (this is only a problem if
159 you modify it, but I should be the only one doing that)
160 - Transition to new Guile 1.6 API has begun
161 - Scripting must always be enabled for now (known "bug")
162 - first hook of a given type to match is the only hook executed, all
163 others are ignored. Note that the last hook to be registered is the
164 first in the list!
165
166
167 Version 1.97: lots of changes, especially guile's scripting support, which
168 is not yet documented. See in the scripts/ directory for
169 examples, and in Interp.C (the Startup() function) for the
170 list of all available commands.
171
172 Version 1.30: Syntax change for "channel =" in bot.conf. See examples/bot.conf.
173 Rewrite of ident/password system. Should be more secure and
174 flexible.