[project @ 2002-07-28 22:17:32 by unknown_lamer]
[clinton/bobotpp.git] / ChangeLog
1 2002-07-27 Clinton Ebadi <clinton@unknownlamer.org>
2
3 * source/Interp.C (Shutdown): Runs bot:exit-hook hooks
4 (Startup): New var for Scheme: bot:exit-hook. Calls the thunks
5 associated with the hook when Interp::Shutdown is called (bot exit).
6
7 2002-07-23 Clinton Ebadi <clinton@unknownlamer.org>
8
9 * source/BotInterp.H (Hook<): Changed behavior of Hook's <. If a
10 hook is greater than or less than the other hook, only the
11 priority is considered. However, if both hooks have the same
12 priority, then the fallthru-ness is considered, with fallthru
13 hooks being greater than non-fallthru hooks.
14
15 * source/BotInterp.C (hptr_lt): Added this static function to be
16 used to sort the hooks list (now hooks should be sorted using
17 Hook's operator < instead of using pointer comparision, meaning
18 the new hook system will work correctly)
19
20 * scripts/bobot-utils.scm: Make bot:log use for-each instead of
21 map because we don't need the result of the displays (this would
22 just be a list of #<undefined> values and is a waste of memory).
23
24 2002-07-13 Clinton Ebadi <clinton@unknownlamer.org>
25
26 * source/Bot.C (Bot): userFunctions is now a map for efficiency
27 (worst case search is now NlogN instead of N). This improvement is
28 not as drastic as the one gained by making the Parser functions
29 list a map (because we don't scan this map for every message), but
30 it helps to clean up the code
31
32 2002-07-12 Clinton Ebadi <clinton@unknownlamer.org>
33
34 * source/Parser.H: Removed userFunctionsStruct
35
36 * source/Interp.C (Startup): ScriptCommands::sendCTCP registered
37 as bot:send-CTCP for Scheme
38
39 * source/ScriptCommands.C (sendCTCP): Wrote sendCTCP
40
41 2002-07-11 Clinton Ebadi <clinton@unknownlamer.org>
42
43 * source/ServerQueue.C (sendUser): Changed . . in USER command to
44 0 * (which is the Right Way to because <mode> must be a number...)
45
46 * source/Parser.C (init): New method of Parse. This initalizes the
47 functions map. functions replaces the old functions array, and
48 should yield better performance (since the functions array had to
49 be scanned for every incoming message)
50
51 * source/Parser.H: New member, functions (private)
52
53 2002-07-10 Clinton Ebadi <clinton@unknownlamer.org>
54
55 * source/Interp.C (Startup): New symbols: bot:user-*
56 [none|user|trusted|friend|master] are defined in Scheme as the
57 different levels of the users.
58 (Startup): All bot-* variables are now bot:*
59
60 2002-07-09 Clinton Ebadi <clinton@unknownlamer.org>
61
62 * source/Bot.H: Made some variables private because they shouldn't
63 be changed at runtime
64
65 * source/Parser.C (parseCTCP): Reneabled DCC CHAT (I want to test
66 this out to see if it works and make it work)
67
68 * source/Bot.C (Bot::Bot): New var: logs_dir. Set to the log file
69 dir.
70
71 * scripts/bobot-utils.scm: Fixed a typo (I forgot the / after
72 scripts in the user scripts dir) that made bobot++ not able to
73 load scripts from the user scripts dir
74
75 2002-07-08 Clinton Ebadi <clinton@unknownlamer.org>
76
77 * source/BotInterp.C (RunHooks): Changed iterators to
78 reverse_iterators because the hooks list is sorted in ascending
79 order--higher priority and fallthrough hooks appear _after_ the
80 lower priority and non-fallthrough hooks.
81
82 * source/Main.C (print_long_help): Added function
83 (print_short_help): Renamed from printUsage
84 (namespace): Most stuff in here is now defined in an anonymouse
85 namespace so it doesn't have external linkage
86 (real_main): Uses getopt_long instead of getopt. Added several
87 command line arguments (bobotpp --help for a full list).
88
89 * scripts/bobot-utils.scm (bot-load): Function moved from
90 bobot-scheme.scm
91
92 * source/Interp.C (Startup): Autoloads
93 PREFIX/bobotpp/scripts/bobot-utils.scm now
94 (Startup): New Scheme variable: bot-sys-scripts-dir (system
95 scripts dir)
96
97 * source/bobot-scheme.scm.in: Removed
98
99 * source/Makefile.am: Removed bobot-scheme.scm compiliation
100
101 * configure.ac (PREFIX): configure.ac defined prefix now
102
103 * source/Main.C (real_main): Default configuration is now read
104 from /etc/bobotpp/default
105 * source/bobot-scheme.scm.in: Added file. This defines the
106 'bot-load' procedure which will load a file from
107 $HOME/.bobotpp/scripts/ or @datadir@/bobotpp/scripts/ if the
108 script doesn't exist in the user script dir.
109
110 2002-07-01 Clinton Ebadi <clinton@unknownlamer.org>
111
112 * bobot++.texinfo: Started docs (just a skeleton right now)
113
114 * source/ScriptCommands.C (AddHook): Now takes pri and fall opt
115 args to set a hooks priority and whether or not it will
116 fallthrough. These args are optional.
117
118 * source/Interp.C (Startup): addhook now takes 3 req and 2 opt args
119
120 * source/BotInterp.C (AddHook): Now uses priority and fallthrough
121 (RunHooks): exec fallthrough hooks first.
122
123 * source/BotInterp.H: Changed Hooks to have priority
124 Added fhooksMap to BotInterp (fallthrough)
125
126 * source/UserCommands.C (AddShit): Converted to use Commands
127
128 2002-06-21 Clinton Ebadi <clinton@unknownlamer.org>
129
130 * source/Commands.C (AddUser): Fixed a one-off (function call was
131 before a brace instead of after one) that caused a segfault when
132 the user mask was a wildcard
133
134 2002-06-20 Clinton Ebadi <clinton@unknownlamer.org>
135
136 * all files: Updated address of the FSF
137
138 * source/UserCommands.C (AddUser): Uses Commands now instead of
139 manipulating the bot directly
140
141 2002-06-18 Clinton Ebadi <clinton@unknownlamer.org>
142
143 * source/ScriptCommands.C (AddShit): Filled in function.
144
145 * source/Interp.C (Startup): Bind bot-adduser to
146 ScriptCommands::AddUser instead of Action
147 (Startup): Bind bot-addshit to ScriptCommands::AddShit
148
149 * source/ScriptCommands.C (AddUser): Filled in function
150
151 * source/ServerList.C (delServer): Changed (n - 1) to n...n-1
152 would have caused problems if you used more than one server
153
154 * source/Parser.H: Changed const char* to String in userFunctionStruct
155
156 * source/String.H: Added std::string compatibility members
157
158 * configure.ac: You can now disable Crypt and scripting
159
160 * source/*: Added #include "config.h" where needed
161
162 * configure.ac: Added AM_CONFIG_HEADER
163
164 * config.h.in: added file
165
166 * source/Queue.C: Didn't notice iostream.h here! Fixed
167
168
169 Copyright 2002 Clinton Ebadi
170 Copying and distribution of this file, with or without modification, are
171 permitted provided the copyright notice and this notice are preserved.