Nickserv fixes
[rbot] / ChangeLog
1 Mon Oct 11 00:37:52 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
2
3   * Fixes to the NickServ plugin
4
5 Sat Oct 09 23:23:24 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
6
7   * Keyword searching
8
9 Fri Oct 08 00:40:07 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
10
11   * fixed insult plugin
12   * fixed excuse plugin
13
14 Thu Oct 07 23:28:05 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
15
16   * searching for urls in the url plugin
17   * roshambo (rock/paper/scissors) plugin from Hans Fugal <hans@fugal.net>
18
19 Sat Apr 17 20:56:50 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
20
21   * Oh, found new tv plugin in my inbox from ages ago, but it's still not
22   working so I guess it changed again since then
23   * New eightball plugin from Daniel Free
24
25 Sat Apr 17 20:44:43 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
26
27   * Fixed the babelfish parser so translate works again.
28   * Misc other fixes
29   * Note some plugins are broken (excuse,insult) because the server they use
30     went away. I don't know of a replacement right now.
31   * tv plugin seems broken, perhaps the html changed.
32
33 Thu Jan 15 21:37:38 GMT 2004  Tom Gilbert <tom@linuxbrit.co.uk>
34
35   * Fixes for ruby 1.8
36
37 0.9.8
38 * new plugin from Alan Third <alan@idiocy.org>, allows you to search and list
39   UK TV programmes.
40
41 0.9.7
42 * various plugin updates
43 * fix (again) for C to F temp conversion in weather plugin
44 * channel topic patch from Peter Suschlik, gives plugin better access to topic
45   changes and related information
46
47 0.9.6
48 * changes to layout of slashdot plugin output
49 * freshmeat plugin, show latest updates or search
50 * fix to C to F temp conversion in weather plugin
51 * status command returns some bot status
52 * fortune plugin
53 * using BDB::Btree everywhere now, instead of BDB::Hash, because the Btree api
54   allows me to set my own key comparison function. This is needed to keep
55   supporting case insensitivity (vital for IRC), which was sadly broken in
56   0.9.5 :( All existing dbs will be upgraded automatically.
57 * roulette plugin - play russian roulette :) also keeps game stats.
58 * new config option, NO_KEYWORD_ADDRESS. If set to "true", the bot will always
59   respond to keywords it knows even when not addressed and the message doesn't
60   start with '. Message must end with "?" however.
61 * hopefully fixed welcome message parsing from certain server types
62
63 0.9.5
64 * plugin object registry
65   This provides persistant storage for plugins via a hash interface. The
66   default mode is an object store, so you can store ruby objects and reference
67   them with hash keys. This is because the default store/restore methods of
68   the plugins' RegistryAccessor are calls to Marshal.dump and Marshal.restore,
69   for example:
70     blah = Hash.new
71     blah[:foo] = "fum"
72     @registry[:blah] = blah
73   then, even after the bot is shut down and disconnected, on the next run you
74   can access the blah object as it was, with:
75     blah = @registry[:blah]
76   The registry can of course be used to store simple strings, fixnums, etc as
77   well, and should be useful to store or cache plugin data or dynamic plugin
78   configuration. 
79
80   If you don't need to store objects, and strictly want a persistant hash of
81   strings, you can override the store/restore methods to suit your needs, for
82   example (in your plugin):
83     def initialize
84       class << @registry
85         def store(val)
86           val
87         end
88         def restore(val)
89           val
90         end
91       end
92     end
93   Your plugins section of the registry is private, it has its own namespace
94   (derived from the plugin's class name, so change it and lose your data).
95   Calls to registry.each etc, will only iterate over your namespace.
96
97   The nickserv and karma plugins use the new registry and should serve as a
98   useful example. Basic usage of the registry is simple, just treat it as a
99   hash, with values that never die (unless you delete() them).
100 * Change to the nickserv plugin. The old method of putting the nickserv
101   password in rbot.conf was useless for multiple nicks or easy updates. The
102   plugin now uses the plugin registry to store passwords for any nicks it
103   owns. The plugin can be told to register the current nick (supply a password
104   or it'll generate one), identify for the current nick (if the password is
105   known), and can be told the passwords for other nicks. If NickServ asks the
106   bot to identify, it will automatically do so if it knows the appropriate
107   password.
108 * karma plugin now uses the plugin registry, it should automatically import
109   your existing, stored karma data into the registry.
110 * The babelfish plugin now caches results in the bot registry to speed up
111   common lookups.
112 * New message types and plugin methods to grab them,
113   quit(QuitMessage):   Called when a user (or the bot) quits IRC
114   nick(NickMessage):   Called when a user (or the bot) changes Nick
115   topic(TopicMessage): Called when a user (or the bot) changes a channel topic
116 * A plugin's listen() method will now receive any kind of Message, e.g.
117   PrivMessage, NoticeMessage, NickMessage, JoinMessage, etc
118 * New plugins:
119   seen: the usual "seen" stuff: 
120         rbot: seen giblet?
121         giblet was last seen xxx ago doing xxx
122   cal:  calls the unix cal program to display a calendar
123   math: evaluates mathematical expressions:
124         rbot: math 2+2
125         rbot: math 4 to the power of 8
126         rbot: math ((232+432) - 4) / 2
127         (ported from infobot. Thanks to Kevin Lenzo, who wrote the
128         original infobot math module)
129   slashdot: displays latest headlines or searches for articles
130   url:  stores urls mentioned in channels for regurgitation later
131   weather: grabs and parses METAR weather data, will remember the last weather
132            code you asked for so you don't have to :)
133 * New utility function, Util.http_get(url) for getting remote data via http,
134   just dumps response.body into a string and returns it, or nil if anything at
135   all goes wrong. Useful for simple plugins.
136 * random quit messages if none specified, messages set in language description
137   file
138 * keywords are now stored in bdb databases - your old keywords.rbot will be
139   imported. Static keywords (fact packs) are also stored in bdb databases, and
140   rbot will automatically convert any text .fact file dropped in the confdir's
141   keywords subdirectory, at startup, into a bdb file. If both a db and a text
142   file exist of the same name (except the extension), the text file will be
143   imported and merged into the database.
144   static keywords will be looked up in each factpack db in turn, in
145   alphabetical filename order - so you can prioritise using the filename if
146   you wish.
147 * fixed a bug with autsplitting long sent lines, the last line was often being
148   split unnecessarily.
149
150 0.9.4
151 * Massive cleanup of rfc2812.rb, contributed by Lars Christensen
152   <dsl8950@vip.cybercity.dk>, gets rid of a lot of regexps
153 * Fixed bug reading static keyword files - "foo <=is=> bar" may not have
154   worked for a couple of releases, only "foo<=is=>bar" was working - this was
155   not intended and should be fixed now
156 * Experimental send queue, to prevent the bot from flooding out, the delay
157   between sending messages to the server defaults to 2s, but is configurable
158   in conf.rbot, set SENDQ_DELAY (0 to disable queueing). You can also set/get
159   the value from the bot, "rbot: options get sendq_delay", and 
160   "rbot: options set sendq_delay 1.5", if you have sufficient auth for "config"
161   This is a bursting sendq, most ircd's allow bursts of up to 5
162   lines, with non-burst limits of 512 bytes/2 seconds. To set the burst limit,
163   configure SENDQ_BURST in conf.rbot, or do the same kind of stuff with
164   "rbot: options set sendq_burst 2", etc.
165   The defaults are 2s/4 burst, which seem to work okay for me.
166 * support for multiple, customisable, addressing prefixes. Set ADDRESS_PREFIX
167   in conf.rbot to a space separate list of addressing prefixes, e.g
168   ADDRESS_PREFIX = | ! =>
169   Would mean that all of the following in channel messages would cause the bot
170   to respond:
171               rbot: version
172               |version
173               !version
174               =>version
175 * bb plugin removed, bb is nearly over and it doesn't work 100% anyway
176 * Two plugins from brailsmt (from #ruby-lang on openprojects), a stats plugin
177   which monitors usage of 1-word sentences, and lart, which allows you to ask
178   rbot to lart people - with an optional reason - larts are user-definable and
179   can be added on the fly.
180 * made google.rb work for people with 1.6 ruby's net/http
181
182 0.9.3
183
184 * fix quit messages
185 * new plugin for handling nickserv-protected nicks, use NICKSERV_PASSWORD in
186   the config file.
187 * fixes to a few other buglets
188 * new plugin to grab bigbrother headlines, still buggy and only useful for UK
189   folks who love bb :-)
190 * fixes to various plugins
191 * Patch from akira yamada <akira@ruby-lang.org>
192   DNS plugin: Use resolv-replace if found, do lookup in new thread
193   Fix bug joining channels with keys
194
195 0.9.2
196
197 * better "connect failure" error message
198 * better option parsing, and --debug option
199 * access to bot's online help via commandline, eg:
200   ./rbot.rb --help
201   ./rbot.rb --help core
202   ./rbot.rb --help "core save"
203 * Fix broken help from last point release
204 * Plugin API modification and cleanup. You no longer need to set @listen to
205   true in order to get all NOTICE and PRIVMSGs, you just need to define the
206   method. The method is now called listen(), renamed from listener(). This
207   should be the last time the plugin api is changed incompatibly.
208 * New plugin method kick(). Use it to see kicks (duh :))
209 * New plugin methods join(), part(). Obvious uses.
210 * Example plugin autorejoin.rb, uses kick event to rejoin channel and insult
211   kicker
212 * fix bug in remind plugins "remind me no more" recognition.
213
214 0.9.1
215
216 * Fix welcome message recognition for certain IRCd's.
217
218 0.9
219
220 * Allow keyword definitions which end in '?', like this:
221   bot: foo is bar\?
222 * rdoc documentation!
223 * fixed broken address regexp, "rbot: .foo" was being treated as an addressed
224   form of "foo" (lost the .)
225 * fix stupid bug in last release (looking for wrong default conf dir)
226
227 0.8
228
229 * Tarball layout change. modules all in rbot/ now, and the rbot/ default
230   configuration moved to rbotconf/. This lets the thing run from an unpacked
231   tarball while also being ready to run with the modules installed somewhere
232   else.
233 * change hashbang to /usr/bin/env ruby, in order to use PATH looking for ruby,
234   it's BSD friendly!
235 * allow "botnick : foo" style addressing, and even "botnick... foo"
236 * slap plugin (contributed by oct)
237 * renamed bot.send to bot.sendmsg, I didn't really want to override send() ;D
238   (thanks Kero)
239
240 0.7.1
241 * Made sane for packagers. Looks in the right places for plugins and language
242   files now, so extra effort shouldn't be needed there.
243
244 0.7
245
246 * Fixed "nick taken on join" bug
247 * Dice plugin patch from David Dorward
248 * fix searchquote regexp
249 * conf.rbot: PASSWORD -> SERVER_PASSWORD, to prevent confusion with PASSWD,
250   which is for master auth.
251
252 0.6
253
254 * Fixed addquote (was incrementing quote ID twice)
255 * now strips colour/bold escapes from incoming messages (rbot was ignoring
256   messages addressed using a bolded colon, for example).
257 * minor bugfixes
258 * more language breadth
259 * Addressing works better now
260 * Can autojoin channels with keys, conf.rbot line is:
261   autojoin_channels #chan1, #chan2, #chan3 key, #chan4 key, #chan5
262 * dice plugin fixes
263
264 0.5
265
266 * Initial release