Commit Graph

678 Commits

Author SHA1 Message Date
a1e7a7cff8 Add test for socket printer 2015-10-20 16:25:39 +02:00
981f6cc66c Run core tests in CI 2015-10-19 17:15:42 +02:00
dbca402fe7 [alias] Use title in response 2015-10-19 17:15:42 +02:00
3004c01db4 tools/web: set timeout to 7 secs 2015-10-19 17:15:42 +02:00
c0ce0ca263 Server Factory: Handle URL arguments without value 2015-10-19 17:15:42 +02:00
2f1f573af2 Fix abstract name of to_server_string function 2015-10-19 17:15:42 +02:00
ffc8fe40c3 Add a build system 2015-10-16 16:39:51 +02:00
fd99deed1d tools/web: colon char in URL precedes optional // 2015-10-15 19:26:09 +02:00
55e6550cb1 tools/web: factorize getNormalizedURL 2015-10-13 16:23:55 +02:00
76ec0d26b4 Modules: avoid unhandled exception in all_post 2015-10-13 16:23:51 +02:00
68e357d037 Initialize an empty module configuration if it has any (sentinel value) 2015-10-13 16:23:35 +02:00
aa4050f6cd [framalink] some refactor 2015-10-13 16:23:33 +02:00
2cd8f70cdc [networking] Dusting module 2015-10-12 13:37:53 +02:00
eb95480c8f [news] normalize URL before performing a join 2015-10-12 13:10:58 +02:00
20105e7d98 tools/web: add a URL normalizer function 2015-10-12 13:10:58 +02:00
7102e08000 tools/feed: hardened parser 2015-10-10 23:20:52 +02:00
04dcf07fb2 tools/web: use standard unescape instead of custom function when available 2015-10-09 17:56:34 +02:00
fd8567c60c Fix module unload and reload 2015-10-08 18:28:49 +02:00
db70974504 [alias] Fix old issues 2015-10-08 18:25:57 +02:00
Max
ece42ffe47 [urlshortner] Add framalink support 2015-10-09 01:47:42 +01:00
Max
c55e66dd70 [tools/web] Add header param to getContentUrl()
Add the possibility to specify headers when querying websites.
2015-10-08 02:47:42 +01:00
684806baaf Help command: skip discovery of command without name 2015-10-07 18:22:01 +02:00
ff2911dbd3 Add a subtreat method in modulecontext
This feature allows module to call the message treatment process on a crafted message
2015-10-07 18:22:01 +02:00
a6a10b78d1 Fill help in some modules 2015-10-07 18:22:01 +02:00
Max
e1310516fa [alias] Fix argument consumption, allow multiple usage of same var 2015-10-07 00:14:37 +01:00
Max
461c62f596 Fix alias ranges
Args are now consumed when in ranges, and ranges with 1 bound now work
2015-10-06 23:23:42 +01:00
57ba0d5db9 [networking] Fix traceurl: trace all URL even if an error occurs 2015-10-03 16:47:20 +02:00
c812fd8c16 As the char ':' is not valid in URL, don't expect it 2015-10-03 16:47:08 +02:00
7970fca93a Use with section for locking threadsafe region (instead of raw calls to acquire/release) 2015-09-28 17:21:03 +02:00
080ab9a626 Fix bad event behaviour: if an event ends in less than 6 seconds, it was executed in the event creator thread (blocking it until the event end) 2015-09-28 17:20:45 +02:00
ff605756ff [news] Add support for RSS feeds and catch ExpatError when trying to parse a bad URL 2015-09-28 12:59:00 +02:00
59aff52ce1 Change the behaviour of send_response in module 2015-09-28 12:45:11 +02:00
283b0d006e Add a new builtin: !echo 2015-09-28 12:45:10 +02:00
b66d7d30ed Accelerate shutdown 2015-09-28 12:27:23 +02:00
f66ed07496 Lock select lists to avoid invalid states (particularly on closing) 2015-09-28 11:59:38 +02:00
ae7526dd96 Fix double exception when invalid file descriptor found in select 2015-09-28 11:59:37 +02:00
dda78df9d2 Add new action queue, synchronized with main thread for prompt like actions (conf loading, exit, ...) 2015-09-28 11:59:37 +02:00
3cfbfd96b0 Let main thread manage consumer threads 2015-09-28 11:59:37 +02:00
ee1910806c [news] Introduce new module News: it fetchs atom feed from a website and display it 2015-09-28 11:53:55 +02:00
a4f4bb799c Extract atom from networking module to core 2015-09-28 11:53:29 +02:00
471feca8fb [networking.atom] use Datetime to store internal dates and can get an ordered list of elements 2015-09-28 11:53:11 +02:00
bbf5acafbb [mediawiki] fix OpenSearch: can have empty description 2015-09-25 15:48:09 +02:00
7a1ad6430c [whois] update module
* change intra-bocal URL to fix CertificateError
	* fix 23.tf trombi URL
	* add a catch when trying trombi URL
2015-09-24 11:29:51 +02:00
4cb8b0f1a6 Improve help
On hook declaration, we can now add a help and/or a help_usage argument
	to provide a simple way to the user to be informed.

	For example:

	```python
	@hook("cmd_hook", "news", help_usage={"URL": "Display the latests news from a given URL"})
	def cmd_news(msg):
	    [...]
	```

	will be displayed on !help !news as:

	> Usage for command !news from module news: !news URL: Display the latests news from a given URL

	Or for module commands help:

	```python
	@hook("cmd_hook", "news", help="display latests news")
	def cmd_news(msg):
	    [...]
	```

	will be displayed on !help mymodule (assuming this hook is in the
	module named mymodule) as:

	> Available commands for module news: news: display latests news

	Obviously, both `help` and `help_usage` can be present. If `help_usage`
	doesn't exist, help on usage will display the content of help.
2015-09-24 11:29:51 +02:00
4f7d89a3a1 [ycc] Dusting module, now named tinyurl 2015-09-24 11:29:50 +02:00
be776405e3 Dusting URL stacking modules: fixing error when using channel list as response 2015-09-24 11:29:50 +02:00
3c51b1f03b Add assertion on class initialization 2015-09-24 11:29:49 +02:00
ecd9457691 Help: display on the right place, not always to private conversation 2015-09-24 11:29:49 +02:00
35ba5c03c9 [more] Allow method chaining 2015-09-24 11:29:49 +02:00
Max
8018369800 Add global tracking hook 2015-09-24 11:29:48 +02:00