Commit Graph

  • 27be9ceb74 commands.process: return immediately when terminating process, without having to deal with the queue. otherwise, we have to block for $smalldelay between putting and getting the item, since queue putting is not instantaneous and sometimes we would get 'nothing returned' instead of the timeout message. Daniel Folkinshteyn 2010-08-05 14:48:12 -04:00
  • e779b70609 Merge branch 'multiprocess' Daniel Folkinshteyn 2010-08-05 14:01:23 -04:00
  • f55606cfb4 Status: add 'processes' command, the multiprocessing equivalent of the threads command. Daniel Folkinshteyn 2010-08-05 13:54:54 -04:00
  • 89cbc7efdf Some improvements to the commands.process function - better process naming and informational output. Daniel Folkinshteyn 2010-08-05 13:45:02 -04:00
  • 1b84e208ca Format.replace: replacement text is now allowed to be the empty string. Daniel Folkinshteyn 2010-08-05 01:27:38 -04:00
  • 0c300162d8 Create a commands.process function which runs a function inside a separate process. This is the only way to limit the execution time of a possibly long-running python statement. Use this on String.re, due to the possibility of pathologically long re matching in python. This allows us to remove the 'trusted-only' restriction on string.re. In the future, this should probably be used in other places that take user-supplied regexps, such as 'misc last --regexp', for example, as well as other potentially long-running tasks that can block the bot. Daniel Folkinshteyn 2010-08-05 01:20:46 -04:00
  • 9398025088 MoobotFactoids: add check_same_thread=False to the sqlite3 connect calls, so it doesn't complain. (thanks malex!) also fix up the code a bit so it doesn't fail the tests, and doesn't require presence of plain sqlite. Daniel Folkinshteyn 2010-08-02 17:48:51 -04:00
  • 166f32dcb0 Ensure channel-specific reply.whenNotAddressed works. James Vega 2010-07-26 19:48:37 -04:00
  • 3a181b6dd2 Google: fix encoding bug in lucky --snippet; need to pass encoded string to utils.web.htmlToText Daniel Folkinshteyn 2010-07-26 09:22:07 -04:00
  • d469108054 Topic: fix bug in invalid number error output. Previously, when giving an invalid positive number, error would reference number-1 as being invalid. Daniel Folkinshteyn 2010-07-23 16:50:25 -04:00
  • 4aa876255c Filter: catch invalid input for unbinary command. Daniel Folkinshteyn 2010-07-21 12:57:18 -04:00
  • 920c37c314 Unix: add call command, giving owner ability to call any system command. Daniel Folkinshteyn 2010-07-21 12:48:46 -04:00
  • 76f109ce0d Google: in lucky --snippet, properly convert html to text, using utils.web.htmlToText. Daniel Folkinshteyn 2010-07-14 19:03:31 -04:00
  • 6905d22c2c Google: add --snippet option to lucky command, which shows the text snippet for the page. Daniel Folkinshteyn 2010-07-14 15:56:48 -04:00
  • edc4d8644e Unix: various enhancements to the ping command: Fixed bug in 100% packet loss response. Errors from ping are now sent to irc.error(). Added packet count, interval, ttl, and wait options. Added additional test cases. brian c 2010-07-12 16:42:03 -04:00
  • 3a84faeb18 Include String plugin for Utilities' tests. James Vega 2010-07-11 11:04:33 -04:00
  • 6e33df49ab ShrinkUrl: Add serviceRotation config. James Vega 2010-07-11 09:48:16 -04:00
  • 3090cffe2c Include String plugin for Utilities' tests. James Vega 2010-07-11 11:04:33 -04:00
  • 0bfa0d153c ShrinkUrl: Add serviceRotation config. James Vega 2010-07-11 09:48:16 -04:00
  • a9e2fc7bed Socket driver: implement ssl connection support. Daniel Folkinshteyn 2010-07-11 02:29:02 -04:00
  • 6df6d477f1 Unix: fixed uncaught OSError exception raised when executing ping fails. oevna@users.sourceforge.net 2010-07-09 10:20:41 -04:00
  • e178d04522 Unix: fix test for the ping command, call unix ping instead of the default misc ping. Daniel Folkinshteyn 2010-07-08 23:29:01 -04:00
  • a8e91a58a0 Added ping command to Unix plugin oevna@users.sourceforge.net 2010-07-08 17:17:37 -04:00
  • 67a41f6626 Filter: add unbinary command, as counterpart to binary command. Daniel Folkinshteyn 2010-07-01 15:44:53 -04:00
  • 0781ff339e Services: Don't filter outgoing JOIN messages on disabled networks James Vega 2010-06-27 19:48:36 -04:00
  • acffde68ab Services: Don't filter outgoing JOIN messages on disabled networks James Vega 2010-06-27 19:48:36 -04:00
  • 23cca935cb Use conf.registerGlobalValue to ensure generated values are properly setup. James Vega 2010-06-24 00:37:40 -04:00
  • dbde5fc250 Elide ignored replies from nested command output. James Vega 2010-06-24 00:25:44 -04:00
  • 0c62204809 Use conf.registerGlobalValue to ensure generated values are properly setup. James Vega 2010-06-24 00:37:40 -04:00
  • c10d964604 Elide ignored replies from nested command output. James Vega 2010-06-24 00:25:44 -04:00
  • 16dbd8917a Services: Properly register the NickServ.password group and child values. James Vega 2010-06-21 19:35:35 -04:00
  • d78f7b6ac5 Services: Properly register the NickServ.password group and child values. James Vega 2010-06-21 19:35:35 -04:00
  • be39fcdbc6 supybot: Remove extraneous sys.stdin.close() James Vega 2010-06-20 09:40:57 -04:00
  • 9b9d009c43 Services: Fix conflict with callbacks.Commands.isDisabled James Vega 2010-06-19 22:38:27 -04:00
  • d21fc27e0c Services: Disable most of the plugin on networks in the disabled list. James Vega 2010-06-19 16:59:13 -04:00
  • 0e22e218f0 supybot: Remove extraneous sys.stdin.close() James Vega 2010-06-20 09:40:57 -04:00
  • f926804f40 Services: Fix conflict with callbacks.Commands.isDisabled James Vega 2010-06-19 22:38:27 -04:00
  • 929859b246 Twisted: Send all available ircmsgs and reduce delay between checks James Vega 2010-06-18 20:33:43 -04:00
  • 432228c736 fix google calc to work when doing a currency conversion. Daniel Folkinshteyn 2010-06-02 18:36:27 -04:00
  • 8daebd1240 make Misc.apropos return plugin name even if command is in only one plugin. Daniel Folkinshteyn 2010-04-27 12:46:22 -04:00
  • 9e73f4482c Services: Disable most of the plugin on networks in the disabled list. James Vega 2010-06-19 16:59:13 -04:00
  • adc5d62bbf Twisted: Send all available ircmsgs and reduce delay between checks James Vega 2010-06-18 20:33:43 -04:00
  • 1ce52f01f4 ChannelLogger: include in logs the reasons for parts and quits Daniel Folkinshteyn 2010-06-15 23:53:15 -04:00
  • a91bc318dc Channel: nicks: add --count argument, which outputs only the count of nicks in channel. also add tests for the nick command. Daniel Folkinshteyn 2010-06-13 02:36:18 -04:00
  • 80491fddb1 Conditional: allow empty string arguments in string-comparison functions Daniel Folkinshteyn 2010-06-03 17:03:39 -04:00
  • 5f2d2a9c5e Utilities: add countargs function, returns number of arguments supplied. Daniel Folkinshteyn 2010-06-03 16:08:25 -04:00
  • 52b36555f4 Utilities: add 'sample' command, a basic interface to random.sample() Daniel Folkinshteyn 2010-06-03 12:52:48 -04:00
  • 108f7f2f86 Socket: Ensure driver is flagged as disconnected after a socket error. James Vega 2010-05-24 23:36:29 -04:00
  • bc8457dc90 utils/web.py: Only try catching socket.sslerror if built with SSL support James Vega 2010-05-24 15:44:25 -04:00
  • db479731b1 Anonymous: Implement support for allowPrivateTarget config. James Vega 2010-05-24 15:21:58 -04:00
  • df2c6c2650 Updates and tweaks to some ircutils functions. (cherry picked from commit 6135a88741fcafa49bb2bd768cfc971cd7d58b5e) Jeremy Fincher 2010-05-18 12:48:36 -05:00
  • 1a228b3e7d fix google calc to work when doing a currency conversion. Daniel Folkinshteyn 2010-06-02 18:36:27 -04:00
  • a278d17f2b Socket: Ensure driver is flagged as disconnected after a socket error. James Vega 2010-05-24 23:36:29 -04:00
  • f03a3f6c85 utils/web.py: Only try catching socket.sslerror if built with SSL support James Vega 2010-05-24 15:44:25 -04:00
  • 57e894de58 Anonymous: Implement support for allowPrivateTarget config. James Vega 2010-05-24 15:21:58 -04:00
  • 40941e044a fix bug in RSS.announce.list: Daniel Folkinshteyn 2010-04-26 19:50:08 -04:00
  • 6135a88741 Updates and tweaks to some ircutils functions. Jeremy Fincher 2010-05-18 12:48:36 -05:00
  • 5ccb242657 Re-add re import since capability-checking code relies on it. James Vega 2010-05-15 21:55:05 -04:00
  • f25d1546bf restore the 'import re' to Topic plugin, which was for some reason taken out two commits ago, in commit 51cabeea33f3dab3d7cf42496c10bd660b212bc7 it is necessary for the operation of the plugin (specifically, in the _checkManageCapabilities function) Daniel Folkinshteyn 2010-05-13 00:52:58 -04:00
  • f3af3ec282 Topic plugin: Restore topic automatically after join if not set. Štěpán Němec 2009-08-26 17:51:55 +02:00
  • 51cabeea33 Topic plugin: Add persistence support. Štěpán Němec 2010-01-28 18:16:45 +01:00
  • fc1a049d3c ChannelStats: Fix rank to work with selfStats James Vega 2010-05-11 17:50:43 -04:00
  • 18ef6dadfc Topic plugin: Restore topic automatically after join if not set. Štěpán Němec 2009-08-26 17:51:55 +02:00
  • 6520d1f282 Topic plugin: Add persistence support. Štěpán Němec 2010-01-28 18:16:45 +01:00
  • 41fd218b8d ChannelStats: Fix rank to work with selfStats James Vega 2010-05-11 17:50:43 -04:00
  • 5d15bbf1b2 for Later plugin, add test for actual sending of notes to nicks upon their being seen. Daniel Folkinshteyn 2010-04-29 20:20:36 -04:00
  • 9c12f80285 Add Later note expiration period, 30 days by default. This should prevent the accumulation of old unclaimed notes in the database, which is possible due to notes left to misspelled nicks, to temporary nicks used by regulars, or to one-time visitor nicks. Daniel Folkinshteyn 2010-04-29 20:04:51 -04:00
  • e4c51ef517 Add --raw option to factoids.whatis, which disables variable substitution on the factoid. also add test for this. Daniel Folkinshteyn 2010-04-28 15:27:08 -04:00
  • 976ad82d69 Use the ircutils.standardSubsitute function upon factoid output. Daniel Folkinshteyn 2010-04-28 00:10:48 -04:00
  • 71f88caa6b Clarify the on-error log message in MessageParser function caller. Daniel Folkinshteyn 2010-04-27 15:28:09 -04:00
  • a819c5b496 make Misc.apropos return plugin name even if command is in only one plugin. Daniel Folkinshteyn 2010-04-27 12:46:22 -04:00
  • 2bb3ba9443 fix bug in RSS.announce.list: Because the 'channel' argument was declared optional, calling announce.list off-channel without a channel argument caused an error. Daniel Folkinshteyn 2010-04-26 19:50:08 -04:00
  • 79c7514f1a Improve supybot-botchk documentation. Make a note that supybot.pidFile config must be set for it to work. Daniel Folkinshteyn 2010-04-25 23:24:42 -04:00
  • 053a9d590e Improve supybot-botchk documentation. Make a note that supybot.pidFile config must be set for it to work. Daniel Folkinshteyn 2010-04-25 23:24:42 -04:00
  • f1517a7acc some enhancements Factoids.rank: output options: plain key output, and alpha sorting for plain output. allow an optional argument for how many ranked facts to show. Daniel Folkinshteyn 2010-04-25 02:58:43 -04:00
  • 55eeb4a57b Add some sanity checks to RSS plugin: Daniel Folkinshteyn 2010-04-25 00:34:31 -04:00
  • 3005752c58 fix docstring for Plugin.plugin command so it actually says what the command will do. Daniel Folkinshteyn 2010-04-21 16:38:25 -04:00
  • 9c5f05ab2d update quotegrabs to sqlite3 Daniel Folkinshteyn 2010-04-21 01:24:13 -04:00
  • 5ad620b5fd Make registry.Regexp.error mimic registry.Value.error James Vega 2010-04-11 10:15:39 -04:00
  • 35fee237da Undo mtughan's bugfix from 7f9a1130605fb6b36967f062d3cbcdb73aff8df6, so i can merge jamessan's fix ef8bd817e8b62ede76aa7501a9a8d69af7408efc Daniel Folkinshteyn 2010-04-19 00:53:40 -04:00
  • 022193b61b for Factoids: make approximate fuzzy key searches also when invoking whatis directly. also add tests. while there, remove useless config setting for replyinvalidcommand testing, since it is true by default. Daniel Folkinshteyn 2010-04-18 03:33:10 -04:00
  • b5058cc5c2 update Karma plugin and test code to use sqlite3. Daniel Folkinshteyn 2010-04-16 16:06:00 -04:00
  • 814d89e200 topic now checks for +t mode before denying topic changes, and also allows halfops in addition to ops. default required capabilities for topic changes (if topic is +t and user is not an op or halfop), are chan,op and chan,halfop thanks jemfinch for the suggestions. Daniel Folkinshteyn 2010-04-11 12:48:08 -04:00
  • 063dd24677 change Topic to have a default required capability set, for all write operations. by default, now only allows chanops, and users with admin or channel,op capability to change topics Daniel Folkinshteyn 2010-04-09 15:56:16 -04:00
  • f880037e41 for Alias, make doc string say "at least x args" if there are optional args in addition to required args. yay for cosmetic improvements. :) Daniel Folkinshteyn 2010-04-14 10:56:39 -04:00
  • 8d64d08645 fix alias bug https://sourceforge.net/tracker/?func=detail&aid=2987147&group_id=58965&atid=489447 add tests for appropriate behavior Daniel Folkinshteyn 2010-04-14 10:27:56 -04:00
  • 4890e2e80d for Alias, make doc string say "at least x args" if there are optional args in addition to required args. yay for cosmetic improvements. :) Daniel Folkinshteyn 2010-04-14 10:56:39 -04:00
  • aa634e6da1 fix alias bug https://sourceforge.net/tracker/?func=detail&aid=2987147&group_id=58965&atid=489447 add tests for appropriate behavior Daniel Folkinshteyn 2010-04-14 10:27:56 -04:00
  • 5e162a28f7 make google translate return detailed google error, instead of the unhelpful "we broke google". Daniel Folkinshteyn 2010-04-11 18:27:39 -04:00
  • 127b3cfabd for google translate, error if destination language is 'auto'. Daniel Folkinshteyn 2010-04-11 17:37:09 -04:00
  • 34d91284a5 in Later nick validation, use irc.isNick. now instead of forcing strictRfc to true, we are using the config. Daniel Folkinshteyn 2010-04-11 17:01:31 -04:00
  • 51eac7da5b add standardsubstitute vars 'utc' and 'gmt' which output current time in UTC. Daniel Folkinshteyn 2010-03-08 17:24:00 -05:00
  • 2c9f325cf4 fix some time display issues in standardsubstitute: Daniel Folkinshteyn 2010-03-08 16:39:45 -05:00
  • 67ab067e6a take out getDb override from factoids, since i have changed it upstream, in plugins.__init__.py, to use proper sqlite3 syntax. Daniel Folkinshteyn 2010-04-11 16:40:59 -04:00
  • bd1fb9f9a6 make on-join telling for later configurable. Daniel Folkinshteyn 2010-04-11 16:25:07 -04:00
  • c4e5dbbe0b topic now checks for +t mode before denying topic changes, and also allows halfops in addition to ops. default required capabilities for topic changes (if topic is +t and user is not an op or halfop), are chan,op and chan,halfop thanks jemfinch for the suggestions. Daniel Folkinshteyn 2010-04-11 12:48:08 -04:00
  • fe07ea1146 Fix the previous Factoids fix. James Vega 2010-04-11 11:04:45 -04:00
  • 209facd242 Factoids: Pass channel to whatis when being called from search James Vega 2010-04-11 10:36:55 -04:00
  • ef8bd817e8 Make registry.Regexp.error mimic registry.Value.error James Vega 2010-04-11 10:15:39 -04:00
  • 8e84da8391 add replace function to format that takes varying-length strings to replace. add test for it add error test for format.translate for different length translate args. Daniel Folkinshteyn 2010-04-11 02:27:22 -04:00