Commit Graph

230 Commits

Author SHA1 Message Date
Jeremy Fincher
bed5624e86 Oops, had to change a self.log to just a log. 2004-01-12 19:19:47 +00:00
Jeremy Fincher
13e0447ea5 Added bug #874038. 2004-01-11 15:17:00 +00:00
Jeremy Fincher
3e93599419 Fixed bugz0r in errorNoCapability. 2004-01-09 14:20:00 +00:00
Jeremy Fincher
f453d10e9a Added a few asserts (the same one three times, actually) to catch old code with a clearer error message. 2004-01-08 23:14:40 +00:00
Jeremy Fincher
1c03464fd9 Huge commit to finish refactoring of replies. 2004-01-08 23:03:48 +00:00
Jeremy Fincher
845142e688 Updated replyNotRegistered stuff. 2004-01-08 21:49:10 +00:00
Jeremy Fincher
099b8bc14b Updated some capabilities stuff. 2004-01-08 15:24:56 +00:00
Jeremy Fincher
530aec2be0 Updated the reply infrastructure. No more msg, it's just not necessary. 2004-01-08 03:12:14 +00:00
Jeremy Fincher
aa7408c09b Changed over to the cool new RichReplyMethods stuff, mostly. 2004-01-07 19:09:24 +00:00
Jeremy Fincher
d6e9eafbf2 Don't call invalidCommand with CTCP messages. 2004-01-07 12:00:59 +00:00
Jeremy Fincher
09dfe24573 Fixed bugz0r with nested commands in Scheduler.repeat. 2004-01-04 19:35:02 +00:00
Jeremy Fincher
b2c156609f Fixed! 2004-01-04 15:16:20 +00:00
Jeremy Fincher
c88a7c3609 Backing out canonicalName in isCommand. 2004-01-04 11:52:12 +00:00
Jeremy Fincher
ef4bff5571 Made isCommand use canonicalName and added getCommand. 2004-01-04 11:23:23 +00:00
Jeremy Fincher
4b3b245834 Made addressedRegexps and Regexps not run if there was an error. Also slightly refactgored handling of errors in Privmsg/IrcProxyObject. Also fixed spawning of threads to set the callback's threaded attribute. 2004-01-01 20:15:25 +00:00
Jeremy Fincher
bbafb4294e Added conf.replyWhenNotAddressed for RFE #859183. 2003-12-17 13:22:21 +00:00
Jeremy Fincher
db8d18b1aa Oops, forgot to commit this with the case-insensitive more changes. 2003-12-16 13:32:31 +00:00
Jeremy Fincher
42ce8c33a6 Swapped the argument order for utils.{pluralize,nItems} 2003-12-12 15:41:33 +00:00
Jeremy Fincher
8f777db9f9 Fixed bug #858008, and a fix for another bug that invalidCommands that raise an exception stop the whole process; now it'll continue to later plugins. 2003-12-11 14:32:45 +00:00
Jeremy Fincher
f592aab3c0 Fixed bug #857299. 2003-12-10 19:17:48 +00:00
Jeremy Fincher
f6f46f6689 Fixed bug #855014 and added RFEs #855453 and #855454. 2003-12-06 23:52:23 +00:00
Jeremy Fincher
40dcc0eb1c Changed a log.info to a log.warning (more appropriate). 2003-12-05 11:52:50 +00:00
Jeremy Fincher
a74d1d5aef Added a little extra logging. 2003-12-04 00:29:06 +00:00
Jeremy Fincher
bc7083506f Make sure to normalize the whitespace on help. 2003-12-03 22:02:29 +00:00
Jeremy Fincher
8e7416fd72 Limit the number of mores to 50. 2003-12-03 05:42:55 +00:00
Jeremy Fincher
41ab05862f Changed the priority of the ignoring logged message. 2003-11-26 18:46:47 +00:00
Jeremy Fincher
48166f4895 Huge update to the logging infrastructure. 2003-11-26 18:21:12 +00:00
Jeremy Fincher
4770ef1b3f Added the to= keyword argument to reply. 2003-11-25 11:08:57 +00:00
Jeremy Fincher
a4284e7924 Added __revision__ strings. 2003-11-25 08:38:19 +00:00
Jeremy Fincher
1d95410f91 Fixed introduced bug in that callbacks.Privmsg.handled wasn't set appropriately when a command was called. 2003-11-22 07:16:34 +00:00
Jeremy Fincher
37c6516693 Fix for bug #846065. 2003-11-22 02:10:51 +00:00
Jeremy Fincher
eb6e112f70 Changed some maps/filters to imaps/ifilters for efficiency reasons (I was bored, basically). 2003-11-15 04:37:04 +00:00
Jeremy Fincher
0e01a1dee8 Sweede is a fscking retard. 2003-11-15 03:01:01 +00:00
Jeremy Fincher
08244ff36e New test and fix for the associated bug. 2003-11-12 21:57:21 +00:00
Jeremy Fincher
e4f912fc51 Made Aliases disambiguate themselves, and made that API in Owner public. 2003-11-12 02:18:22 +00:00
Jeremy Fincher
28753856eb __parented some classes. 2003-11-04 08:13:22 +00:00
Jeremy Fincher
65e469ba38 Removed crazy-buggy rate limiting stuff. 2003-11-04 08:05:16 +00:00
Jeremy Fincher
895ecf718f Fixed bug #832590. 2003-10-30 05:27:25 +00:00
Jeremy Fincher
58cf080109 Fixed the nesting bug with testEval and testCalc. 2003-10-29 23:40:14 +00:00
Jeremy Fincher
e556e783b1 Moved ambiguous command handling to Owner; fixed handling of empty nested command. 2003-10-29 23:02:27 +00:00
Jeremy Fincher
afbf513df2 Changed not to use the deprecated new module. 2003-10-29 13:06:17 +00:00
Jeremy Fincher
186239ee84 Fixed an infinite loop problem in the new invalidCommand code. 2003-10-28 06:57:52 +00:00
Jeremy Fincher
a34589cce7 Completed the removal of callbacks.Privmsg.doPrivmsg. 2003-10-28 06:30:42 +00:00
Jeremy Fincher
86a3746994 Added a finished variable so we don't have to rely on return values from invalidCommand. 2003-10-28 06:06:21 +00:00
Jeremy Fincher
b9fb362a65 Oops, not self.msg. 2003-10-28 05:16:17 +00:00
Jeremy Fincher
e03c65f753 Changed the whole handling of nonCommands and ambiguousCommands and whatnot. Now plugins can define an 'invalidCommand' method to be called on invalid commands. 2003-10-28 00:22:15 +00:00
Jeremy Fincher
39349302a6 Changed the way the plugin name is reported in help. 2003-10-24 23:14:27 +00:00
Jeremy Fincher
094bdee30b Fixed bug with commandsOnStart not being called unless they were already canonical names. 2003-10-24 18:53:34 +00:00
Jeremy Fincher
d85c8c555b Added plugin name to help output. 2003-10-24 13:52:09 +00:00
Jeremy Fincher
ff8159c91e Made only-syntax return without the parentheses. 2003-10-24 11:47:45 +00:00
Jeremy Fincher
af402fd60a Added a configuration option to show only syntax on ArgumentError. 2003-10-24 11:31:09 +00:00
Jeremy Fincher
8b200efaa0 Removed bug. 2003-10-23 14:46:56 +00:00
Jeremy Fincher
f847208b65 Updated docstring for dispatchers slightly. 2003-10-23 08:43:50 +00:00
Jeremy Fincher
d60b3daecb Made error message better for dispatcher commands. 2003-10-22 17:19:08 +00:00
Jeremy Fincher
cad2269ba5 Made ordering in PrivmsgCommandAndRegexp depend on the list of regexp-methods. 2003-10-21 21:15:29 +00:00
Jeremy Fincher
7a1130cc28 Made it so only one method will be called, unless a plugin specifically declares a command to be alwaysCalled. 2003-10-21 21:01:43 +00:00
Jeremy Fincher
72402b98c7 Removed handling of ambiguous commands in IrcObjectProxy; Misc is the only place where it's to be handled. Also fixed bug that a dispatched command raising callbacks.ArgumentError results in the syntax for the dispatcher. 2003-10-21 07:20:54 +00:00
Jeremy Fincher
3212ece69c Finished 'big change' to allow dispatching and stuff. 2003-10-20 11:34:21 +00:00
Jeremy Fincher
55ccb85542 Removed the syntax command; changed interface of callbacks.findCallbackForCommand to return a list of the matching callbacks; fix help to handle the prefixing of the plugin name. 2003-10-20 10:25:13 +00:00
Stéphan Kochen
e12f69b7a2 Added conf.replyWithPrivateNotice and 'notice' command. 2003-10-20 10:10:46 +00:00
Jeremy Fincher
0b6c2084cf Fixed handling of callbacks.ArgumentError in PrivmsgCommandAndRegexp. 2003-10-20 07:31:17 +00:00
Jeremy Fincher
eb31db6277 Added memoization optimization to tokenize function. 2003-10-20 04:26:37 +00:00
Jeremy Fincher
68fd496516 Added memoization optimization to tokenize function. 2003-10-20 04:17:14 +00:00
Jeremy Fincher
06cd9ae285 Added memoization optimization to tokenize function. 2003-10-20 04:16:44 +00:00
Jeremy Fincher
8fc200ae1f Removed premature optimization of using the regexp to decide when to tokenize. We'll optimize when we have to, likely by making tokenize memoize. 2003-10-20 03:56:15 +00:00
Jeremy Fincher
63135c4c48 Removed a debugging print. 2003-10-15 06:53:54 +00:00
Jeremy Fincher
aa1b992643 Added error reporting to regexp-based callCommands. 2003-10-13 23:20:15 +00:00
Jeremy Fincher
9eff6d997e Removed/commented out some debug.printfs. 2003-10-12 12:42:43 +00:00
Jeremy Fincher
e96c1359fd Added addressedRegexps set to PrivmsgCommandAndRegexp. 2003-10-09 04:29:37 +00:00
Jeremy Fincher
b0f5674f91 Fixed bug #820262. 2003-10-08 22:38:27 +00:00
Jeremy Fincher
b1495a1718 Added a docstring. 2003-10-05 20:40:45 +00:00
Jeremy Fincher
970c819e79 Changed fix.py to munge __builtins__ rather than requiring a "from fix import *" statement. 2003-10-05 12:47:19 +00:00
Jeremy Fincher
71fcfb8db9 Deleted a few variables that shouldn't have been exported. 2003-10-04 12:29:58 +00:00
Jeremy Fincher
8d620207ea Added lots of docstrings. 2003-10-04 11:34:44 +00:00
Jeremy Fincher
bbbc97c11b Added fix for possible bug in re.finditer. 2003-10-04 09:59:06 +00:00
Jeremy Fincher
1e64fad163 Fixed replyNoCapability messages to be in private. 2003-10-03 10:04:40 +00:00
Jeremy Fincher
41bacaba13 Accepted RFE #812257: Multiple regexp matches in one message. 2003-10-02 22:37:36 +00:00
Jeremy Fincher
31b1abaa59 Forgot to change an IndexError to a ValueError. 2003-09-25 16:09:18 +00:00
Jeremy Fincher
60c00549e1 Fixed Strike's bug: <jemfinch-nw> angryman^^^^^: list would elicit a response from angryman. 2003-09-25 16:07:41 +00:00
Jeremy Fincher
12d707a90f Updated IrcObjectProxyRegexp.reply to match the interface of IrcObjectProxy.reply. 2003-09-23 20:45:00 +00:00
Jeremy Fincher
a1da1ba14d Made IrcObjectProxy.error respect conf.errorReplyPrivate. 2003-09-22 09:45:23 +00:00
Jeremy Fincher
f13aa41e1b Added error reporting for unmet capability checks. 2003-09-19 06:24:38 +00:00
Jeremy Fincher
d6854355be Added error reporting for unmet capability checks. 2003-09-19 05:57:46 +00:00
Jeremy Fincher
3af8f1c790 Added private and action keywords to IrcObjectProxy.reply and converted FunDB to use them. 2003-09-18 07:26:21 +00:00
Jeremy Fincher
411289e625 Made privmsgs wrappers stackable. 2003-09-17 23:31:45 +00:00
Jeremy Fincher
70b80f0622 Added configuration variable to determine whether pipe syntax is accepted. 2003-09-17 19:19:38 +00:00
Jeremy Fincher
5ace516fb1 Reworked some callCommand stuff to centralize some code. 2003-09-17 08:12:59 +00:00
Jeremy Fincher
92369c6fde Changed logging of ignorance in PrivmsgRegexp. 2003-09-12 20:20:18 +00:00
Jeremy Fincher
a0e0ca2c5f Forgot to check if conf.replyWhenNotCommand is True before deciding not to respond if there's a non-command in the dealio. 2003-09-12 19:15:33 +00:00
Jeremy Fincher
da8ee2a758 Fixed bug where the bot would respond with 'there is no such command' if it wasn't the canonical name. 2003-09-12 06:59:41 +00:00
Jeremy Fincher
74a9964da2 Updated PrivmsgCommandAndRegexp to also sort its regexps by their method name. 2003-09-11 09:10:42 +00:00
Jeremy Fincher
176b9b30b6 Fix for RFE #801934: Response in case of non-commands. 2003-09-10 08:32:20 +00:00
Jeremy Fincher
61a0142265 Added functionality to protect private commands from being @more <nicked>, and fixed the fact that it doesn't work across the Relay. 2003-09-08 19:43:33 +00:00
Jeremy Fincher
f818efa588 Added better logging of message times and prefixName option to IrcObjectProxy.reply. 2003-09-08 08:44:51 +00:00
Jeremy Fincher
315d8710dc Added pipe syntax. 2003-09-07 09:41:47 +00:00
Jeremy Fincher
5db67b0b2c Changed (more) to show the number of remaining messages. 2003-09-07 05:13:58 +00:00
Jeremy Fincher
92b745f42f Added bold to the (more) that gets appended. 2003-09-07 05:08:07 +00:00
Jeremy Fincher
723ff123e1 Fixed bug in more stuff. 2003-09-07 04:56:26 +00:00
Jeremy Fincher
3873b351f4 Added the more command. 2003-09-07 04:05:34 +00:00
Jeremy Fincher
91de0b066c Fix bug that didn't allow commands without arguments in onStart. 2003-09-06 08:00:46 +00:00