1 2002-07-27 Clinton Ebadi <clinton@unknownlamer.org>
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).
7 2002-07-23 Clinton Ebadi <clinton@unknownlamer.org>
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.
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)
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).
24 2002-07-13 Clinton Ebadi <clinton@unknownlamer.org>
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
32 2002-07-12 Clinton Ebadi <clinton@unknownlamer.org>
34 * source/Parser.H: Removed userFunctionsStruct
36 * source/Interp.C (Startup): ScriptCommands::sendCTCP registered
37 as bot:send-CTCP for Scheme
39 * source/ScriptCommands.C (sendCTCP): Wrote sendCTCP
41 2002-07-11 Clinton Ebadi <clinton@unknownlamer.org>
43 * source/ServerQueue.C (sendUser): Changed . . in USER command to
44 0 * (which is the Right Way to because <mode> must be a number...)
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)
51 * source/Parser.H: New member, functions (private)
53 2002-07-10 Clinton Ebadi <clinton@unknownlamer.org>
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:*
60 2002-07-09 Clinton Ebadi <clinton@unknownlamer.org>
62 * source/Bot.H: Made some variables private because they shouldn't
65 * source/Parser.C (parseCTCP): Reneabled DCC CHAT (I want to test
66 this out to see if it works and make it work)
68 * source/Bot.C (Bot::Bot): New var: logs_dir. Set to the log file
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
75 2002-07-08 Clinton Ebadi <clinton@unknownlamer.org>
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.
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).
89 * scripts/bobot-utils.scm (bot-load): Function moved from
92 * source/Interp.C (Startup): Autoloads
93 PREFIX/bobotpp/scripts/bobot-utils.scm now
94 (Startup): New Scheme variable: bot-sys-scripts-dir (system
97 * source/bobot-scheme.scm.in: Removed
99 * source/Makefile.am: Removed bobot-scheme.scm compiliation
101 * configure.ac (PREFIX): configure.ac defined prefix now
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.
110 2002-07-01 Clinton Ebadi <clinton@unknownlamer.org>
112 * bobot++.texinfo: Started docs (just a skeleton right now)
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.
118 * source/Interp.C (Startup): addhook now takes 3 req and 2 opt args
120 * source/BotInterp.C (AddHook): Now uses priority and fallthrough
121 (RunHooks): exec fallthrough hooks first.
123 * source/BotInterp.H: Changed Hooks to have priority
124 Added fhooksMap to BotInterp (fallthrough)
126 * source/UserCommands.C (AddShit): Converted to use Commands
128 2002-06-21 Clinton Ebadi <clinton@unknownlamer.org>
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
134 2002-06-20 Clinton Ebadi <clinton@unknownlamer.org>
136 * all files: Updated address of the FSF
138 * source/UserCommands.C (AddUser): Uses Commands now instead of
139 manipulating the bot directly
141 2002-06-18 Clinton Ebadi <clinton@unknownlamer.org>
143 * source/ScriptCommands.C (AddShit): Filled in function.
145 * source/Interp.C (Startup): Bind bot-adduser to
146 ScriptCommands::AddUser instead of Action
147 (Startup): Bind bot-addshit to ScriptCommands::AddShit
149 * source/ScriptCommands.C (AddUser): Filled in function
151 * source/ServerList.C (delServer): Changed (n - 1) to n...n-1
152 would have caused problems if you used more than one server
154 * source/Parser.H: Changed const char* to String in userFunctionStruct
156 * source/String.H: Added std::string compatibility members
158 * configure.ac: You can now disable Crypt and scripting
160 * source/*: Added #include "config.h" where needed
162 * configure.ac: Added AM_CONFIG_HEADER
164 * config.h.in: added file
166 * source/Queue.C: Didn't notice iostream.h here! Fixed
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.