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