Commit Graph

10124 Commits

Author SHA1 Message Date
Daniel Folkinshteyn
92be7c255f String: make levenshtein command threaded, since it can take a nontrivial amount of time with longer inputs.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 21:49:15 -04:00
Daniel Folkinshteyn
34e5aedc45 String: make re timeout configurable.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 21:47:32 -04:00
Daniel Folkinshteyn
9fc7ec28b4 Fix error handling for subprocesses.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 21:44:04 -04:00
Daniel Folkinshteyn
7504c646b7 Status.processes: add output of currently active processes.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 21:35:26 -04:00
Daniel Folkinshteyn
141b120a9c 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.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 21:32:54 -04:00
Daniel Folkinshteyn
7f4a1be9f9 Status: add 'processes' command, the multiprocessing equivalent of the threads command.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 21:32:17 -04:00
Daniel Folkinshteyn
7f98aa7105 Some improvements to the commands.process function - better process naming and informational output.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 21:28:41 -04:00
Daniel Folkinshteyn
a2985c37d6 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.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 21:19:34 -04:00
Daniel Folkinshteyn
d691a91636 Topic: fix bug in invalid number error output.
Previously, when giving an invalid positive number, error would reference number-1 as being invalid.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 20:52:27 -04:00
Daniel Folkinshteyn
84b878b10e Filter: catch invalid input for unbinary command.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 20:51:13 -04:00
Daniel Folkinshteyn
7feb50685a Filter: add unbinary command, as counterpart to binary command.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-15 20:47:30 -04:00
Daniel Folkinshteyn
6025f7364c core: force inet_aton argument to string to prevent occasional error on reconnect.
it /should/ always be a string anyway, but sometimes things break with
a TypeError that it is an int instead of the expected string and hangs
up the bot.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-14 12:21:56 -04:00
James McCoy
aa4071fa68 RSS: Remove local/feedparser and add it to install_requires
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-14 12:13:00 -04:00
James McCoy
450be69710 Bootstrap setuptools if it isn't available.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-14 12:12:23 -04:00
Valentin Lorentz
4d1a7ea32a Display more explicit error if python-sqlite3 is not installed. 2012-10-13 08:54:33 +00:00
Valentin Lorentz
5ebbf2d516 Merge branch 'debian' into testing
Conflicts:
	setup.py
2012-10-12 19:56:43 +02:00
Valentin Lorentz
6b881d6509 Socket driver: Apply supybot.drivers.poll as soon as modified (do not require reconnect). 2012-10-10 19:39:28 +02:00
Valentin Lorentz
aff8cd30ad Merge pull request #419 from Mkaysi/automode-l10n-fi
AutoMode: update l10n-fi.
2012-10-07 09:00:06 -07:00
Mika Suomalainen
0098fa576e AutoMode: update l10n-fi. 2012-10-07 18:58:26 +03:00
Valentin Lorentz
b132e44418 Merge pull request #418 from Mkaysi/alias-l10n-fi
Alias: update l10n-fi.
2012-10-07 08:54:51 -07:00
Valentin Lorentz
514f26fc33 Merge pull request #417 from Mkaysi/google-l10n-fi
Google: update l10n-fi.
2012-10-07 08:54:38 -07:00
Valentin Lorentz
eca08f7ed0 Merge pull request #416 from Mkaysi/channellogger-l10n-fi
ChannelLogger: update l10n-fi
2012-10-07 08:54:25 -07:00
Mika Suomalainen
a80569c0ee AutoMode: update messages.pot 2012-10-07 18:54:21 +03:00
Mika Suomalainen
d8595bee85 Alias: update messages.pot
I forgot to commit it again.
2012-10-07 18:52:59 +03:00
Mika Suomalainen
9e2e6bf8f8 Alias: update l10n-fi. 2012-10-07 18:51:47 +03:00
Mika Suomalainen
bbb7a0cc3b Google: update l10n-fi. 2012-10-07 18:46:42 +03:00
Mika Suomalainen
9bc69cccaf Google: update messages.pot 2012-10-07 18:43:39 +03:00
Mika Suomalainen
e9923dbf38 ChannelLogger: update l10n-fi. 2012-10-07 18:39:45 +03:00
Mika Suomalainen
8e0100ac47 ChannelLogger: update messages.pot 2012-10-07 18:37:47 +03:00
Valentin Lorentz
707b2d77e6 Merge pull request #415 from Mkaysi/shrinkurl-l10n-fi
ShrinkUrl: update l10n-fi.
2012-10-07 08:37:42 -07:00
Valentin Lorentz
27a40bd82f Merge pull request #414 from Mkaysi/channel-l10n-fi
Channel: update l10n-fi & messages.pot
2012-10-07 08:37:31 -07:00
Mika Suomalainen
f584c10bc7 ShrinkUrl: commit updated messages.pot 2012-10-07 18:35:43 +03:00
Mika Suomalainen
1b85284100 ShrinkUrl: update l10n-fi. 2012-10-07 18:34:02 +03:00
Mika Suomalainen
38c512f3e1 Channel: update l10n-fi. 2012-10-07 18:12:56 +03:00
Mika Suomalainen
3fdbad99e2 Channel: update messages.pot 2012-10-07 18:04:47 +03:00
Valentin Lorentz
42957a6a69 Socket driver: Fix typo. 2012-10-07 13:55:01 +02:00
Valentin Lorentz
156b3d93e1 Socket driver: Add support for Socks proxies. 2012-10-07 13:13:08 +02:00
Valentin Lorentz
364a3e50e8 src/ircmsgs.py: Assert string parameters are actually strings.
This prevents a plugin from sending another object and messing with outFilter methods of other plugins.
2012-10-06 21:12:40 +00:00
Valentin Lorentz
40801513ac Channel: Fix help for @iban. 2012-10-06 20:48:10 +00:00
Valentin Lorentz
c8dc3eac16 Channel: Use exact hostmask if provided. 2012-10-06 17:58:44 +00:00
Valentin Lorentz
fe9c28ffa8 Channel: Add command @iban. Closes GH-282. 2012-10-06 17:58:19 +00:00
James McCoy
0b81b170ca Indicate supybot.networks.$network.servers/channels are space-separated lists in their help
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-04 21:41:00 -04:00
Valentin Lorentz
1fc11d0cea Merge pull request #411 from Hoaas/testing
Web: Fix fetch. Use getUrl instead of getUrlFd.
2012-10-02 10:23:16 -07:00
Terje Hoås
cb623b2f4e Web: Fix fetch. Use getUrl instead of getUrlFd. 2012-10-02 18:19:53 +02:00
Valentin Lorentz
784b8c37f8 httpserver: Add support for multiple hosts and IPv6. Closes GH-387. 2012-09-30 18:54:30 +02:00
Valentin Lorentz
247ed460b0 Revert "Utilities: Add @concat command": already in Format.
This reverts commit 75f9917f86.
2012-09-30 11:35:35 +00:00
Valentin Lorentz
75f9917f86 Utilities: Add @concat command 2012-09-30 11:02:12 +00:00
Valentin Lorentz
45e6b7be7a Merge pull request #407 from resistivecorpse/testing
adds an on off config option for logging of joins parts and quits in Cha...
2012-09-26 10:53:09 -07:00
Valentin Lorentz
4dc607f6b1 Merge pull request #409 from Mkaysi/later-readme
Later: write proper README.
2012-09-26 10:52:46 -07:00
Mika Suomalainen
b7d762c041 Later: rename README.md -> README.txt 2012-09-26 19:29:18 +03:00