Commit Graph

201 Commits

Author SHA1 Message Date
Daniel Folkinshteyn
9e1ba9910a make Misc.apropos return plugin name even if command is in only one plugin.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 8daebd1240)
2010-08-24 19:50:22 -04:00
Daniel Folkinshteyn
8daebd1240 make Misc.apropos return plugin name even if command is in only one plugin.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-06-19 17:20:20 -04:00
Jeremy Fincher
b9d6277e30 Added supybot.abuse.flood.command.invalid.notify, a configuration variable determining whether the bot will notify infractors of their ignoring. 2009-06-09 10:40:05 -05:00
James Vega
0d98118247 Allow getCommandHelp to be told whether to use simpleSyntax.
Use this to force Misc.help to ignore simpleSyntax since the user has
explicitly asked for the help.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-05-18 03:12:54 -04:00
James Vega
f539e65b8e Misc.last: Prevent potential information leaks
Add required predicates which
1) Do not retrieve messages from a channel the calling user isn't in
2) Do not retrieve messages from a +s channel unless the calling user is in a
   query or in that channel

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-08 01:09:25 -05:00
James Vega
507b95a2eb Fix a couple Misc tests 2009-03-11 13:37:26 -04:00
James Vega
7bb3b1ec60 Merge the changes from the python25compat branch into the trunk 2009-03-11 13:37:24 -04:00
James Vega
4de0a49489 plugins/Misc/test.py: Correct a test and make a couple tests more robust. 2006-05-05 12:51:08 +00:00
James Vega
48a5f2a4a9 plugins/Misc/test.py: Add a missing plugin that needs to be loaded. Update some documentation and add a note about why a test is failing. 2006-05-05 12:50:13 +00:00
James Vega
a3e4fc5b1d Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
James Vega
d4d165ea40 plugins/Misc: Make sure Misc.last only skips the first message if last is being performed on the channel the user is currently in. 2005-06-10 12:19:10 +00:00
Jeremy Fincher
490fb0b140 Changed prefixName to prefixNick, which is more appropriate, and has always bothered me. Better now than later. 2005-06-01 21:08:30 +00:00
Jeremy Fincher
b41166cc4c This should've been an error response in the first place. 2005-06-01 20:14:37 +00:00
Jeremy Fincher
5c8677cf22 Give a better error message when a given command isn't found in a plugin. 2005-06-01 01:10:08 +00:00
Jeremy Fincher
0b848199b5 Fixed some style issues with logging calls. 2005-05-18 04:18:35 +00:00
James Vega
726679d6e4 plugins/Misc: Give proper help when listing a plugin with no commands. 2005-05-09 17:53:06 +00:00
Jeremy Fincher
f79ffc85bd Fixed bug with replies when it's not a command and it's not nested. 2005-05-05 13:24:11 +00:00
James Vega
141bbf8bff Remove the hostmask test from Misc. 2005-04-15 12:15:51 +00:00
James Vega
9482f27bf1 Make hostmask a source-nested command in User. 2005-04-14 23:41:18 +00:00
Jeremy Fincher
47a1912030 Improved the reply given when a plugin with no commands is 'list'ed. 2005-03-26 17:52:40 +00:00
James Vega
9971e991fe Fix the modelines. 2005-03-23 20:07:45 +00:00
Jeremy Fincher
b0e006ab12 Fixed help to show the full command. 2005-02-24 12:50:09 +00:00
Jeremy Fincher
e863999e16 Accidentally changed this from an error to a reply when refactoring. 2005-02-24 04:25:28 +00:00
Jeremy Fincher
66036c344f Oops, forgot a format. 2005-02-19 19:48:48 +00:00
Jeremy Fincher
1c10d4cd20 Fixed help. 2005-02-19 19:44:49 +00:00
Jeremy Fincher
8756b79cc4 Moved the appropriate commands from Misc to Plugin, and fixed the test failures in the process. 2005-02-18 06:31:26 +00:00
Jeremy Fincher
0e86d75ed7 Fixed apropos and help to work with the newly refactored command change. 2005-02-18 05:21:15 +00:00
James Vega
90c000793d utils.gen.* functions shouldn't explicitly be called since they're all in the utils namespace. 2005-02-15 13:57:57 +00:00
James Vega
b13a607e2c Fix some test failures. 2005-02-13 02:53:31 +00:00
Jeremy Fincher
181d0d59c6 Had the more and the messages reversed. 2005-02-10 01:28:38 +00:00
James Vega
88746764dd Update source URL. 2005-02-09 18:09:07 +00:00
Jeremy Fincher
b0cb616709 Changed callbacks.Privmsg to be callbacks.Plugin, and callbacks.PrivmsgCommandAndRegexp to be callbacks.Plugin. 2005-02-09 07:04:04 +00:00
Jeremy Fincher
70d1b1d5d0 Moved _mores to IrcObjectProxy, where it more rightfully belongs. 2005-02-07 06:28:52 +00:00
Jeremy Fincher
972716069c Removed callbacks.Privmsg; if it is replaced at some later time, it'll be different. 2005-02-07 06:10:41 +00:00
Jeremy Fincher
fd365e9994 Removed the revision tests, since we removed the revision command. 2005-02-07 05:52:42 +00:00
Jeremy Fincher
fdddefe129 Added a listCommands method to PrivmsgRegexp, to allow plugins to list their own commands. 2005-02-04 20:08:38 +00:00
Daniel DiPaolo
c998dfbebf Moving action,reply,private,notice to new Reply plugin (for real) 2005-02-02 04:39:45 +00:00
Daniel DiPaolo
739c9ceda7 Fix Misc tests not to rely on Gameknot 2005-02-01 07:39:28 +00:00
James Vega
8669467b9b Split ping off from the old Fun plugin. 2005-02-02 03:26:22 +00:00
Jeremy Fincher
6965abc3fd Made the warning log in Misc.version (a) info, and (b) more useful. 2005-02-02 02:44:58 +00:00
James Vega
2b7e813ffd jemfinch needs his dots! 2005-02-01 13:50:01 +00:00
Jeremy Fincher
641c5cd634 Added __version__ strings to already-converted plugins. 2005-02-01 06:15:37 +00:00
James Vega
de89bf0265 Update usage of utils.str functions. 2005-01-31 14:52:27 +00:00
James Vega
28cb5abc65 Update usage of functions in utils.gen. 2005-01-31 13:06:43 +00:00
Jeremy Fincher
68b1d65d68 Plugin normalization, sanitation, etc. Removed unused imports, for the most part. 2005-01-29 21:24:17 +00:00
Jeremy Fincher
381a42d863 Added an "irc" argument to callbacks.Privmsg.__init__, so now plugins get an Irc on instantiation. 2005-01-29 19:16:29 +00:00
Jeremy Fincher
5fd6bbb52d Completely restructured our utils modules.
Tons of changes.  Here's the summary of things that matter most:

* There is no more supybot.fix.
* There is no more supybot.webutils; now there is supybot.utils.web.
  * It's no longer webutils.WebError, but just utils.web.Error.
* You shouldn't import itertools, ideally, but instead import utils.iter.
* No more using imap/ifilter in commands unless absolutely necessary.  It's
  premature optimization and annoying.
* utils.str.format isn't quite ready yet, but will be soon.  That'll be the
  next big thing to fix in our code.
2005-01-27 06:59:08 +00:00
Jeremy Fincher
8d415d7631 Updated to work with the new supybot-test. 2005-01-19 23:20:46 +00:00
Jeremy Fincher
2c31235a3e Moved docstrings in plugin packages to __init__.py instead of plugin.py; no lazy "backwards compatibility" hack. 2005-01-19 23:17:35 +00:00
Jeremy Fincher
5019d10a1b Updated license years. 2005-01-19 13:33:05 +00:00
Jeremy Fincher
8ca625d339 Initial import. 2005-01-19 13:14:38 +00:00