Commit Graph

521 Commits

Author SHA1 Message Date
Jeremy Fincher
23fb9e1c7b Changed tag name to isError rather than errored. 2004-09-24 20:28:31 +00:00
James Vega
35894401c7 Let's move noReply() to RichReplyMethods so that anything that subclasses
it can use noReply().  Fixes bug #1032406
2004-09-24 13:52:46 +00:00
Jeremy Fincher
78da84e4cb Configurable quotes, w00t. 2004-09-24 01:13:17 +00:00
Jeremy Fincher
3e58419338 Various minor refactorings, moved supybot.reply.{brackets,pipeSyntax} to supybot.commands.nested. 2004-09-23 23:15:27 +00:00
James Vega
f700927969 We were missing an import and a conf. header 2004-09-23 19:15:14 +00:00
Jeremy Fincher
72214dc9d0 Added supybot.reply.maximumLength. 2004-09-23 17:07:54 +00:00
Jeremy Fincher
0aa6cd5c28 Fixed importantPlugin dispatching. 2004-09-23 16:32:58 +00:00
Jeremy Fincher
16b9fb386e Added a repr keyword argument to errorInvalid and used it to fix bug #1030474. 2004-09-22 22:41:58 +00:00
Jeremy Fincher
fc8da1888c Variable name change. 2004-09-22 22:26:17 +00:00
Jeremy Fincher
998f61cce8 Moved disambiguation stuff to callbacks.IOP. Also fixed rename-persistence. 2004-09-22 21:38:20 +00:00
James Vega
781ba32793 Fix bug #1030367, supybot.replywithNickPrefix doesn't obey channel value 2004-09-21 01:32:26 +00:00
James Vega
50973a10fb Remove #! lines. 2004-09-20 03:01:50 +00:00
Jeremy Fincher
9720b79a48 Changed tagging method. 2004-09-16 14:37:08 +00:00
Jeremy Fincher
9be4fd112d Finally got topological sorting working. 2004-09-16 10:28:59 +00:00
Jeremy Fincher
4605ce84f8 Added repliedTo tag, stopped not calling invalidCommand if regexp methods match. 2004-09-14 15:07:52 +00:00
Jeremy Fincher
5c804d27ea Didn't update PrivmsgRegexp to the new callCommand shmadealio. 2004-09-13 03:02:01 +00:00
Jeremy Fincher
75e53d37f3 Catch callbacks.Error coming out of invalidCommand. 2004-09-12 20:27:03 +00:00
Jeremy Fincher
8bbed5a90e Dispatch __eq__ and __hash__ to our real Irc. 2004-09-12 05:48:19 +00:00
Jeremy Fincher
dd7b02fb54 More useful assert. 2004-09-11 16:14:43 +00:00
Jeremy Fincher
ee4768634f Changed to __lt__ instead of __cmp__ -- it's simpler and doesn't screw with equality. 2004-09-10 07:27:42 +00:00
Jeremy Fincher
8eeab87a98 Stupid asserts. Definitely not worth it there. 2004-09-10 06:58:36 +00:00
Jeremy Fincher
c573ab5996 New plugin prioritization method. 2004-09-10 06:30:21 +00:00
Jeremy Fincher
3537c34a58 More fix0rs for prefixName. 2004-09-09 18:53:40 +00:00
Jeremy Fincher
767f5bb0a3 Added proper prefixName handling to callbacks.reply. 2004-09-09 15:33:18 +00:00
Jeremy Fincher
ee70224aa3 Changed callCommand to give a name rather than a method; added invalidCommand throttling, ctcp throttling, and whole bunch of other crap. 2004-09-08 23:34:48 +00:00
James Vega
846bf9102b Correctly report the invalidCommand that set irc.finished. 2004-09-07 19:13:27 +00:00
Jeremy Fincher
f6ae3b23a4 Elucidating docstring. 2004-09-01 10:56:55 +00:00
Jeremy Fincher
7ef00a2c6a Handled reply.withNoticeWhenPrivate appropriately. 2004-08-31 14:54:37 +00:00
Jeremy Fincher
3aedb305f9 Fix for possible bugz0r with reply.withNoticeWhenPrivate. 2004-08-30 04:35:51 +00:00
James Vega
6b59933673 Let's make sure nested commands don't immediately nest commands (aka using a
nested command to determine what the outer nested command is going to call)
2004-08-28 22:28:44 +00:00
Jeremy Fincher
42f3e1340c Reply's getConfig shouldn't be used on GlobalValues. 2004-08-27 15:13:48 +00:00
Jeremy Fincher
ff7622b083 Added an extra try/except madoodle since what we expect to be firewalled (a plugin's invalidCommand). 2004-08-26 04:19:06 +00:00
James Vega
533fbd2762 Proper fix for problem URL tests exposed 2004-08-26 02:29:48 +00:00
Jeremy Fincher
a8584ba898 Fix for failing test in URL. 2004-08-26 01:04:23 +00:00
Jeremy Fincher
6b1f742e71 prefixChars == reply.whenAddressedBy.chars. 2004-08-25 23:03:42 +00:00
James Vega
2a040b475f actually implement reply.withNoticeWhenPrivate 2004-08-24 19:48:01 +00:00
Jeremy Fincher
547137dc1c Give the original error a Raise argument. 2004-08-24 14:03:24 +00:00
Jeremy Fincher
fbb348b6e7 Copyright updates. Again, more is left to be done, but this is my part. 2004-08-23 13:14:06 +00:00
Jeremy Fincher
6d1d6013cd Fixed exception id 0x8a41d. 2004-08-19 19:48:00 +00:00
Jeremy Fincher
501b642796 Some extra periods. 2004-08-19 12:19:18 +00:00
Jeremy Fincher
0f598271dc Speeling fixes. 2004-08-18 23:15:27 +00:00
Jeremy Fincher
523204f080 Let's allow errors to raise their complaint. 2004-08-18 18:44:34 +00:00
Jeremy Fincher
162456108e It's possible that the Misc plugin isn't loaded. 2004-08-16 20:03:11 +00:00
Jeremy Fincher
7b2cbd950f Fixed the user list problem mo betta. 2004-08-16 13:22:08 +00:00
Jeremy Fincher
e7aa2efcfd Fixed the user list problem. 2004-08-16 01:29:22 +00:00
James Vega
efb7891f46 pylint cleanups 2004-08-11 12:57:52 +00:00
Jeremy Fincher
b3169b7c54 Forgot chanPlugin. Yay, PyChecker. 2004-08-11 07:43:28 +00:00
Jeremy Fincher
2259e9d8b6 Added log.stat, supybot.log.statistics, and changed some statistic-keeping functions over to use log.stat. 2004-08-10 07:39:23 +00:00
Jeremy Fincher
8a4e79e007 Let's try to respect some channel values, shall we? 2004-08-08 17:48:33 +00:00
Jeremy Fincher
3fa477dc90 Removed reply.withPrivate notice, replaced with two separate variables, reply.withNotice and reply.inPrivate. 2004-08-08 17:34:59 +00:00
Jeremy Fincher
3db50c1a2b Fix for bug about reply.withPrivateNotice overriding stuff. 2004-08-08 00:41:13 +00:00
Jeremy Fincher
26fcd9ad97 Slightt update -- private implies not prefixName. 2004-08-03 04:44:12 +00:00
Jeremy Fincher
5dbb3141ad Bugfix in the add. 2004-08-02 11:39:16 +00:00
Jeremy Fincher
cb1cd25995 Let's actually respect the channel-value-ness of reply.whenAddressedByNick. 2004-08-02 11:19:58 +00:00
James Vega
d47d54bc82 Almost out entire testsuite works, yet again. Yay! 2004-08-01 14:38:37 +00:00
Jeremy Fincher
2a611309a7 Added mores group and instant. 2004-07-31 12:38:38 +00:00
Jeremy Fincher
f349f08111 Changed IrcObjectProxyRegexp to SimpleProxy to more accurately show what the deal is. 2004-07-31 12:14:13 +00:00
Jeremy Fincher
41f07048c1 Slight change to logging output. 2004-07-31 08:27:25 +00:00
Jeremy Fincher
750d6c5e5b Added tell to Infobot. 2004-07-31 06:46:19 +00:00
Jeremy Fincher
9250d3ab32 Tons of differences, moved some registry values around, also changed some internal attributes of registry thingies. 2004-07-31 05:00:43 +00:00
James Vega
115a3a88ec move isCtcp to ircmsgs and fix up a couple things with Infobot 2004-07-31 03:45:25 +00:00
Jeremy Fincher
d6faaefa30 Why not make this public? 2004-07-29 09:53:13 +00:00
Jeremy Fincher
61793a489c Added the new buttkicking enable/disable. 2004-07-29 09:46:22 +00:00
Jeremy Fincher
b252ae87c9 Added a value option to registryValue to allow not getting the value (and just returning the group). 2004-07-29 07:40:32 +00:00
Jeremy Fincher
7c71096929 Changed the default for setValue keyword in setUserValue. 2004-07-28 06:12:02 +00:00
Jeremy Fincher
1b5e3b82f8 Added supybot.reply.withNoticeWhenPrivate. 2004-07-26 15:51:01 +00:00
Jeremy Fincher
dc4d78774d Forgot an import. 2004-07-26 05:39:44 +00:00
Jeremy Fincher
282846fd59 Added registry.split. 2004-07-25 11:06:00 +00:00
Jeremy Fincher
f9c61271ea w00, less path mungingEXCLAIMEXCLAIM 2004-07-24 05:18:26 +00:00
Jeremy Fincher
3f0dcf15d1 Let's handle old registry entries gracefully. 2004-07-24 02:29:26 +00:00
Jeremy Fincher
53b29f1bf8 Allow commands to be the same name as callbacks. 2004-07-23 19:55:13 +00:00
Jeremy Fincher
2e4a8e3567 Updated to use the helper functions conf.register* 2004-07-23 06:54:29 +00:00
Jeremy Fincher
f2ac57eb8a Fixed the problem with prefixing the nick in private messages. 2004-07-23 04:50:32 +00:00
Jeremy Fincher
9e6a3ed094 Fixed bug #960696. 2004-07-22 16:16:01 +00:00
Jeremy Fincher
2b506b2fc7 Made setUserValue argument order consistent with userValue argument order. 2004-07-20 07:34:22 +00:00
Jeremy Fincher
87d8d60e2e Oops, forgot to commit this with the Note commits. 2004-07-20 07:06:52 +00:00
James Vega
7fbb6daa15 Revert the previous 'fix' since to can never be None at that point. Also,
remove those evil lines full of white-space!
2004-07-07 18:04:55 +00:00
Jeremy Fincher
79db100b31 Actual commit for the fix for reply. 2004-07-01 17:58:17 +00:00
Jeremy Fincher
2b87b4d949 Grr. 2004-06-23 14:11:21 +00:00
Jeremy Fincher
b6fbfef5e6 Hate. 2004-06-23 14:10:10 +00:00
Jeremy Fincher
287f016e58 Hack. 2004-06-23 14:03:18 +00:00
Jeremy Fincher
b594ef798a Trying fix for lack of prefixing name. 2004-06-23 13:55:40 +00:00
Jeremy Fincher
eb2deeb801 isDispatcher stuff. 2004-06-11 20:30:13 +00:00
James Vega
d8b7254021 Revert a reply() change and fix some tests. 2004-06-09 23:48:33 +00:00
Jeremy Fincher
dcd5606b6c Tried to fix jamessan's dealio. 2004-06-06 23:50:19 +00:00
Jeremy Fincher
8ab613dbed Remove bracketSyntax, make brackets channel-specific. 2004-05-07 16:14:02 +00:00
Jeremy Fincher
2f2b7bd6c1 Changed supybot.defaultCapabilities to a space-separated list, made prefixChars channel-specific, and a few other quick changes. 2004-05-07 11:30:42 +00:00
Jeremy Fincher
b4f977e2dd Fixed the wacky addressed problems. 2004-05-06 15:48:09 +00:00
Jeremy Fincher
6e6d619f48 Added a setValue option to setUserValue. 2004-04-30 19:19:46 +00:00
Jeremy Fincher
e3b690f933 Added userdata registry. 2004-04-30 18:24:35 +00:00
Jeremy Fincher
dc1bc4ba55 Updated a ton of configuration variables. 2004-04-30 02:13:42 +00:00
Jeremy Fincher
a0e7bd2bd1 Slight cleanup. 2004-04-27 17:14:54 +00:00
Jeremy Fincher
fbe9460093 Oops, didn't think I'd need any changes here. 2004-04-22 05:02:46 +00:00
Jeremy Fincher
28fe96c833 Allow irc.error() to be called with no arguments and act as if ArgumentError was raised. 2004-04-21 04:31:42 +00:00
Daniel DiPaolo
201fb0acc2 Usability enhancement: Added a note in the callbacks.Privmsg docstring which
points people to getting the config values of a plugin.
2004-04-18 08:00:29 +00:00
Jeremy Fincher
cf5b75fbca Minor stylistic update. 2004-04-17 16:45:56 +00:00
Jeremy Fincher
e194e89c85 Check that an action doesn't continue past the first reply. 2004-04-17 14:07:55 +00:00
Jeremy Fincher
b82991609e Updated the help messages for SyntaxErrors. 2004-04-13 16:03:05 +00:00
Jeremy Fincher
44ab483905 Slight update. 2004-04-09 15:30:34 +00:00
Jeremy Fincher
7f6040a160 Refactored callbacks.{error,reply} and its friends; added supybot.reply.errorWithNotice. 2004-04-09 02:55:03 +00:00
Jeremy Fincher
93f64b6a68 Added supybot.reply.maximumMores. 2004-04-05 17:36:17 +00:00
Jeremy Fincher
6cddfb5358 Added supybot.reply.truncate, to turn off the normal moring of things. 2004-04-05 16:01:36 +00:00
Jeremy Fincher
71ea32c811 Added supybot.brackets for specifying what valid bracket characters are. 2004-03-30 08:27:05 +00:00
Jeremy Fincher
d9c535f2bc Slight cleanups. 2004-03-30 08:02:59 +00:00
Jeremy Fincher
f166ce8655 Removed ConfigIrcProxy, I forgot we didn't use it anymore. 2004-03-30 07:58:22 +00:00
Jeremy Fincher
d2e1d80b27 Use plugins.standardSubstitute in supybot.replies. 2004-02-24 21:20:31 +00:00
Jeremy Fincher
39bbf683fb Fixed some typos. 2004-02-20 06:32:39 +00:00
Stéphan Kochen
708ee91776 Actually, that is rather unnecessary. Sorry for messing up so bad today. :/ 2004-02-18 16:29:44 +00:00
Stéphan Kochen
52e7551493 Whoops, messed that up good. 2004-02-18 16:21:07 +00:00
Stéphan Kochen
f08f875d3c Fixed a nasty bug where pipe syntax would still work if it's disabled but
the pipe character is spaced out, as in: @foo | bar
Also added supybot.bracketSyntax; defaults to True, don't worry. ;)
2004-02-18 15:39:30 +00:00
Jeremy Fincher
2747baf48a Fixed bug in IrcObjectProxy{Regexp} where actions weren't targetted correctly based on the to/private arguments. 2004-02-18 13:41:47 +00:00
Jeremy Fincher
faa27d573f Fix for bug #899271, as well as some other problems with the test suite and ChannelPluginTestCase. 2004-02-18 07:36:40 +00:00
Jeremy Fincher
de72ad4026 Made a potential AssertionError not get raised. 2004-02-16 17:28:12 +00:00
Jeremy Fincher
c5aa3f0112 The documentation was wrong, not the code. 2004-02-16 08:36:29 +00:00
James Vega
3bdef0fabf Change the behavior to match the naming and help. 2004-02-14 07:21:08 +00:00
Jeremy Fincher
681c091309 Instead of asserting non-unicodeness, let's just encode it. 2004-02-13 04:43:39 +00:00
Jeremy Fincher
52393396b2 Changed the timing log from info to debug. 2004-02-08 10:02:05 +00:00
Jeremy Fincher
6b6efcddcc Removed some useless debugging madealios. 2004-02-08 03:24:09 +00:00
Jeremy Fincher
2022839a96 Gave replies the **kwargs. 2004-02-07 12:38:31 +00:00
Jeremy Fincher
9108591b7f Added isCommand to the firewalled methods. 2004-02-07 11:48:37 +00:00
Jeremy Fincher
47d81547aa Added log.firewall and log.MetaFirewall, and converted several classes to use them. 2004-02-06 09:20:47 +00:00
James Vega
7b8b1a25ca Improve supybot's handling of PRIVMSGs that start with 'supybot' 2004-02-02 02:36:53 +00:00
Jeremy Fincher
5b2d89b086 Fixed that one bug submitted by jamessan about plugin.command capabilities being unhandled. 2004-01-30 22:14:39 +00:00
Jeremy Fincher
b9abf8427a Removed killProxy, which was never used. 2004-01-26 03:50:15 +00:00
Jeremy Fincher
bd47403bf0 Made registryValue work with dotted syntax. 2004-01-21 16:25:38 +00:00
James Vega
c3173fe4b4 registryValue was missing a little self loving 2004-01-21 01:16:37 +00:00
Jeremy Fincher
0cd95c63d5 Added supybot.reply.noCapabilityError. 2004-01-20 22:39:15 +00:00
Jeremy Fincher
e8bba56f1f Added supybot.reply.detailedErrors. 2004-01-20 22:26:48 +00:00
Jeremy Fincher
03647ce53d Added supybot.threadAllCommands. 2004-01-20 22:09:10 +00:00
Jeremy Fincher
26c4bcd27d Juggled some parentheses around and added registryValue to callbacks.Privmsg. 2004-01-20 16:17:12 +00:00
Jeremy Fincher
224cacc966 Fixed several bugs and added the replies rich reply method. 2004-01-19 20:51:04 +00:00
Jeremy Fincher
6ca78924f3 HUUUUUUUUGE Configuration change. 2004-01-18 07:58:26 +00:00
Stéphan Kochen
dddf1d2a08 Removed a debug message. 2004-01-16 23:28:29 +00:00
Stéphan Kochen
1572ccf452 Typo I presume :) 2004-01-16 21:12:56 +00:00
Jeremy Fincher
b2f23c6f63 Updated the rest of the code to use utils.changeFunctionName. 2004-01-16 16:39:00 +00:00
Jeremy Fincher
f5ec8f1467 Refactored, and made sure Privmsg.callCommand doesn't catch exceptions. 2004-01-16 16:14:46 +00:00
Jeremy Fincher
1e15c4ca75 Partial fix for bug #877601, I'll do the rest in class. 2004-01-16 12:50:32 +00:00
Jeremy Fincher
8164f5bb1f Partial fix for bug #877601, I'll do the rest in class. 2004-01-16 12:42:52 +00:00
Jeremy Fincher
38e8c33422 Stylistic updates. 2004-01-15 19:09:40 +00:00
Jeremy Fincher
3c25e6f41f Make _make... __make... 2004-01-15 12:54:10 +00:00
Jeremy Fincher
82249961a3 Bugfix! 2004-01-14 03:27:45 +00:00
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
Jeremy Fincher
15c115d028 Added a sanity guard to finalEval and changed a debug.printf to a debug.msg. 2003-09-06 01:07:08 +00:00
Jeremy Fincher
7b3a62eacf Fixed bug with empty [] in command. 2003-09-05 07:26:55 +00:00
Jeremy Fincher
8f475fdcdd The command finder function (I forget the name) would find serendipitously named methods in PrivmsgRegexp, and that's bad. Fixed and added a test for the known case of it. 2003-09-02 07:30:35 +00:00
Jeremy Fincher
ebc00fe4d7 Fixed logging of ignores to actually say who's being ignored. 2003-09-01 18:35:00 +00:00
Jeremy Fincher
85caaf6696 Fixed bug in automatic canonicalNaming of non-commands. 2003-09-01 06:47:22 +00:00
Jeremy Fincher
d1677d4192 Changed regexp in Privmsg to be more flexible. 2003-09-01 05:59:58 +00:00
Jeremy Fincher
89a0d12cce Added tracking of how many commands have been processed. 2003-08-29 07:08:03 +00:00
Jeremy Fincher
a0bf562d7a Redid startup/configuration junk. 2003-08-28 16:33:45 +00:00
Jeremy Fincher
9550971042 Added ability for commands to raise callbacks.CannotNest if they are not nestable. 2003-08-27 07:45:48 +00:00