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