Commit graph

2960 commits

Author SHA1 Message Date
mathieui
0276f2adf7 Fix the dice plugin config 2016-07-05 01:39:17 +02:00
mathieui
d55ce5b996 Fix #3197 (add a dice plugin)
also add some doc for the marquee plugin
2016-07-05 01:15:04 +02:00
mathieui
43d7b029f8 Refactor the /join command
Fix subtle bugs hopefully without introducing new ones
2016-07-04 22:03:37 +02:00
louiz’
64647e3fe8 Correctly set the MucListTab name to a string and not a JID
Fix a traceback on /w, and many other places, when a MucListTab is open
2016-07-04 14:16:39 +02:00
mathieui
d039da7b2c RIP gmail.com
If by change a user manages to connect to gmail, they won’t be able to
join another server that has MUCs, so that code is useless.
2016-07-03 02:27:21 +02:00
mathieui
7607140b71 Fix plugin loading when installed 2016-07-03 02:22:55 +02:00
mathieui
2e988af4d8 Fix launch.sh
We want to be able to run "python -m poezio" AND have a poezio entry
point.
2016-07-03 02:13:24 +02:00
mathieui
401048aba1 Make the entry point a function
otherwise it breaks the generated entry point loader, which will work
but display a traceback on exit
2016-07-03 01:59:05 +02:00
mathieui
8f1f877c96 Add /save_order to the reorder plugin
And fix a breakage due to the recent change in tab creation.
2016-07-01 19:51:34 +02:00
Emmanuel Gil Peyrot
b685df501a Remove every now-useless usage of the Singleton function. 2016-06-30 23:29:51 +01:00
mathieui
d636d57df4 Fix dynamic/static conversation tab 2016-07-01 00:24:15 +02:00
mathieui
3e2839f74e Only import "Command" instead of "core" when possible 2016-06-30 23:58:42 +02:00
mathieui
8383f77341 Use a "core" parameter for each tab object instead of a singleton
fixes the circular import issue
2016-06-30 23:57:12 +02:00
mathieui
8f7be37a70 Absolute imports everywhere 2016-06-30 23:36:25 +02:00
mathieui
945035fc18 Update the entry point again 2016-06-30 23:05:55 +02:00
mathieui
ab86e79918 Use absolute imports instead of relative ones
All this crap is very brittle due to circular deps and python handling
them badly. This appears to be fixing some stuff, at the very least.

This is sed, so cleanup of imports (which can now be grouped together)
is not done yet.
2016-06-30 22:56:24 +02:00
mathieui
5680d1584c Fix /nick 2016-06-28 21:01:04 +02:00
Emmanuel Gil Peyrot
15cb47d18c Simplify Tab.core to remove class variables. 2016-06-28 00:48:42 +01:00
Emmanuel Gil Peyrot
29ac9ec597 Import Singleton instead of its module, and remove unused imports. 2016-06-28 00:25:01 +01:00
Emmanuel Gil Peyrot
36377f78ba Add missing import in __main__ module. 2016-06-28 00:21:59 +01:00
Emmanuel Gil Peyrot
3a24d88353 Make plugins import from the absolute poezio package. 2016-06-28 00:10:52 +01:00
Emmanuel Gil Peyrot
a210303b01 Fix a typo. 2016-06-27 23:55:51 +01:00
Emmanuel Gil Peyrot
6a1bd5f9b9 Make all relative imports explicit. 2016-06-27 23:54:50 +01:00
Emmanuel Gil Peyrot
7e51947f47 Launch poezio as a module package. 2016-06-27 23:54:50 +01:00
mathieui
0447188eac Limit 0184 receipts to one-to-one tabs
Instead of chat tabs, which include MUC which doesn’t implement that.
2016-06-24 21:17:29 +02:00
mathieui
158bb8c3f3 Fix #3198 (no highlight in corrections)
broken since bc6ee8d due to using timestamps
2016-06-24 20:20:36 +02:00
mathieui
3c90ac838f Always send a presence-unavailable on command /part
(even if we thought we were already disconnected)
2016-06-24 19:41:59 +02:00
mathieui
76a890acc7 Fix #3203 (indent contact and resources in the roster) 2016-06-24 19:34:23 +02:00
mathieui
633d023a6c Fix the alias plugin
(broken during linkmauve refactoring)
2016-06-24 19:14:14 +02:00
mathieui
db47dbbc46 Fix a traceback on adhoc 2016-06-22 01:16:03 +02:00
mathieui
ce915a86c1 Increase ping timeout delays (now that the ping actually works) 2016-06-12 21:46:46 +02:00
mathieui
aa79acb7d9 Disable smacks by default 2016-06-12 21:45:04 +02:00
mathieui
3de3dbd7fc Add back the entrypoint
It’s needed for proper installation
2016-06-12 17:00:54 +02:00
mathieui
2994a8e1e9 Update tests 2016-06-12 16:56:18 +02:00
Emmanuel Gil Peyrot
ed5f7b18bd Remove the global Win._win_core, instead pass core to the two *GlobalInfoBar. 2016-06-12 15:31:15 +01:00
Emmanuel Gil Peyrot
b08688c701 Remove unused properties in SizeManager. 2016-06-12 15:31:15 +01:00
Emmanuel Gil Peyrot
367d4599c8 Small xml_tab fix. 2016-06-12 15:31:15 +01:00
Emmanuel Gil Peyrot
fba820e879 Convert some genexprs into regular list comprehension. 2016-06-12 15:31:15 +01:00
Emmanuel Gil Peyrot
293d2637d1 Improve core typability. 2016-06-12 14:34:44 +01:00
Emmanuel Gil Peyrot
6d2bb1eab8 Fix core handlers, broken in the previous commit. 2016-06-12 14:34:44 +01:00
Emmanuel Gil Peyrot
34d110e643 Split core handlers into its own (broken) class. 2016-06-12 14:33:39 +01:00
Emmanuel Gil Peyrot
c1be52847b Fix core commands, broken in the previous commit. 2016-06-12 14:33:39 +01:00
Emmanuel Gil Peyrot
37cd7d1924 Split core commands into its own (broken) class. 2016-06-12 14:33:37 +01:00
Emmanuel Gil Peyrot
815cd46be9 Fix core completion, broken in the previous commit. 2016-06-12 13:25:45 +01:00
Emmanuel Gil Peyrot
86794bb0fd Split core completion into its own class.
This commit is non-functional, it only changes indentation to make
other changes more apparent, I’m sorry if you come from the future and
are bisecting, it was the only way to make it look proper. :(
2016-06-11 21:47:35 +01:00
Emmanuel Gil Peyrot
8fc8446e8a Make poezio.logger more Cython-friendly.
Also don’t handle logger fds outside of Logger, and mark private
objects and methods.
2016-06-11 20:49:46 +01:00
Emmanuel Gil Peyrot
fb4ceb232c Remove unused imports in poezio.timed_events. 2016-06-11 20:49:46 +01:00
Emmanuel Gil Peyrot
08baecfc5a Make poezio.events more Cython-friendly. 2016-06-11 20:49:46 +01:00
Emmanuel Gil Peyrot
840ad7433f Make poezio.common more Cython-friendly.
Also remove support for OLD_PYTHON (before 3.3), some unused constants,
mark private functions with a leading underscore, and clean up some
pep8 violations.
2016-06-11 20:49:46 +01:00
Emmanuel Gil Peyrot
bfb02d64a8 Make poezio.core.struct more Cython-friendly.
Status and Command are now slotted classes instead of namedtuples,
which led to a few changes to access them with their named parameters
instead of as a tuple.

“short” being a C type, I renamed Command.short into
Command.short_desc, which is more explicit anyway.

I also renamed possible_show into POSSIBLE_SHOW, as it is a
module-level constant dict.
2016-06-11 20:49:46 +01:00