Florent Le Coz
689f17cfd7
Fix the curses -> html color conversion
2011-11-07 19:55:16 +01:00
Florent Le Coz
36cd91dc9c
trigger events *_say BEFORE generating the xhtml, making it possible to add colors in the hook
2011-11-07 19:54:45 +01:00
Florent Le Coz
15780364cf
avoid a crash on invalid colors
2011-11-07 19:54:12 +01:00
Florent Le Coz
cd16403cb4
typo
2011-11-07 19:57:16 +01:00
mathieui
153137e5d2
Removed "WARNING" debug messages, because they are irrelevant
2011-11-07 19:38:37 +01:00
mathieui
70a809a7b4
Refresh the RosterInfoTab on got_offline and got_online
2011-11-07 19:28:12 +01:00
Florent Le Coz
953783c200
Merge branch 'plugins' of https://git.louiz.org/poezio into plugins
2011-11-07 15:15:34 +01:00
mathieui
d6b8ca50f2
Remove first&last and only use "position" in plugins events
2011-11-07 15:09:39 +01:00
Florent Le Coz
41b5497330
Merge branch 'plugins' of https://git.louiz.org/poezio into plugins
2011-11-07 14:57:13 +01:00
Florent Le Coz
54962e6796
Merge branch 'plugins' of /home/louiz/git/poezio into plugins
...
Conflicts:
src/core.py
2011-11-07 19:48:16 +01:00
Florent Le Coz
17e5411d8f
use only full color mode when sending messages. Simple color mode should never
...
be used in any part of the code except inside the input.
2011-11-07 19:47:16 +01:00
Florent Le Coz
04f103b9e6
Add a function to convert ncurses colors to HTML color code.
2011-11-07 19:43:13 +01:00
mathieui
1f3fafe155
Add somme triggers
2011-11-07 14:45:08 +01:00
mathieui
10fe12086d
Fix subscriptions (/add → /accept instead of /add → /accept → /accept)
2011-11-07 14:33:37 +01:00
mathieui
78174a6eae
Move a space (for perfectionnists)
2011-11-07 13:47:23 +01:00
mathieui
452f62ecf4
Actually add the events.py file
2011-11-07 13:06:57 +01:00
Florent Le Coz
8911f85a42
Merge branch 'master' into plugins
...
Conflicts:
src/core.py
2011-11-07 01:02:03 +01:00
mathieui
961cf5df85
New type of events to be used with the plugins
2011-11-06 23:46:00 +01:00
mathieui
14c05b2dee
Make private join/parts work properly
2011-11-06 21:22:59 +01:00
mathieui
c3c67b5e0a
Code cleanup (unused import, variables, undefined names, etc…)
2011-11-06 21:10:09 +01:00
Florent Le Coz
6a0ac419c5
Merge branch 'master' into plugins
2011-11-06 19:24:37 +01:00
Florent Le Coz
0315b05f51
Fix the sending of colors in private.
...
fixes #2287
2011-11-06 19:22:20 +01:00
Florent Le Coz
07f9fab401
Merge branch 'master' into plugins
...
Conflicts:
src/core.py
2011-11-06 17:54:05 +01:00
Florent Le Coz
7d861ee885
Fix another thing related to Room removale
2011-11-06 17:31:56 +01:00
Florent Le Coz
1a57fcc4fa
Actually, no, messages are in _text_buffer
2011-11-06 17:20:59 +01:00
Florent Le Coz
aa78a454fb
Merge branch 'master' of https://git.louiz.org/poezio
2011-11-06 17:11:55 +01:00
Florent Le Coz
200019574d
Use threads RLock to avoid crash on simultaneous refresh and resize.
...
fixes #2180
2011-11-06 17:08:40 +01:00
Florent Le Coz
b9c6f08a79
Wasn’t that already remove, like, TWICE?
2011-11-06 16:50:10 +01:00
mathieui
8b8128c416
Fixes #2286 (with /info)
2011-11-06 16:27:47 +01:00
Florent Le Coz
16854c39fd
Remove a tab._room reference in a plugin API.
2011-11-06 16:01:14 +01:00
Florent Le Coz
6597d83355
Merge branch 'master' into plugins
2011-11-06 16:00:41 +01:00
Florent Le Coz
7bf63c51e2
Fix a remaining crash from the Room class deletion.
2011-11-06 15:57:03 +01:00
mathieui
bf9857b782
Fixes mostly #2285 (no more crashes), but as for why we get an iqerror
...
when trying to get the version from a full jid……
2011-11-06 15:46:52 +01:00
mathieui
fc20de76ff
Should really fix #2284 and some other tbs
2011-11-06 14:38:00 +01:00
mathieui
fbb465a092
Fixes #2284
2011-11-06 14:18:45 +01:00
mathieui
12850ed062
Use Tab.state proxy everywhere, also, use the right color on private
...
message
2011-11-06 03:57:43 +01:00
Florent Le Coz
9ff6380149
fix variable name, and remove ALL tab._room references.
2011-11-06 03:34:39 +01:00
Florent Le Coz
e3477d7db8
Remove the Room class. fixes #2122
2011-11-06 03:31:47 +01:00
Florent Le Coz
3412c119a9
First part of the “remove the Room class” change
2011-11-06 03:27:56 +01:00
mathieui
e6797c29a5
Smaller means being insane, and even then, it should’nt bug too much
...
Fixes #2259
2011-11-06 00:15:38 +01:00
mathieui
af6e534578
More @property magic, for transparency
2011-11-05 22:12:55 +01:00
mathieui
25fb35d7e1
Things related to priority, fixes #2266 (imo)
2011-11-05 22:12:03 +01:00
mathieui
a49af71f7c
Fixes #2255 with some lambda fun
2011-11-05 21:25:17 +01:00
mathieui
3f08e235a1
Fix some chat states problems (e.g. /dnd sending inactive)
2011-11-05 21:10:16 +01:00
mathieui
038869d2f7
Fix the /kick command
2011-11-05 19:38:03 +01:00
mathieui
4a8ef77839
Partial fix to #2266 and #2255 (removes the idea of "color state" and
...
adds state, that are computed to the current theme color)
2011-11-05 19:35:24 +01:00
Florent Le Coz
458e853874
Merge branch 'master' of https://git.louiz.org/poezio into plugins
2011-11-05 01:42:50 +01:00
mathieui
a603f46906
Fix a typo that causes a curses TB
2011-11-03 08:57:21 +01:00
Emmanuel Gil Peyrot
dac8a12abf
Add a config option that display the nick in join/part/status
...
change/etc. in that user color. Fixes #2282 .
2011-11-01 17:14:43 +01:00
mathieui
ecf3685db6
Fixed #2281
2011-11-01 12:17:17 +01:00
mathieui
611acbeb2a
Fixes #2277
2011-10-30 23:18:47 +01:00
mathieui
9d64bd1398
Remove aliases to /status
2011-10-29 17:46:45 +02:00
Florent Le Coz
21f0c8f3f3
Fix the url matching in the link plugin
2011-10-29 17:20:18 +02:00
Florent Le Coz
db1e84d34e
Daemon now reads from a pipe and not in the fifo directly
2011-10-29 16:58:36 +02:00
Florent Le Coz
0451127ff8
Merge branch 'master' into plugins
2011-10-29 07:20:10 +02:00
Florent Le Coz
881de6a7c0
add get_conversation_messages for the plugin API
2011-10-29 07:05:19 +02:00
Florent Le Coz
a090b235d7
Make the PluginConfig class heritate the poezio Config
...
We can use the nice and safe get() method
2011-10-29 07:04:32 +02:00
Florent Le Coz
cb2796abc5
Add a \n when writing the command to the fifo
2011-10-29 07:03:49 +02:00
Florent Le Coz
f8fcf6696d
Remove any mention of “coucou”
2011-10-29 05:14:05 +02:00
Florent Le Coz
1303919706
Add the daemon.
2011-10-29 05:13:12 +02:00
Florent Le Coz
7e16ffd9e0
Remote execution.
...
We can use a fifo to write command, and execute them on the local
machine by running a simple daemon.
2011-10-29 05:11:30 +02:00
mathieui
6d436f570a
Fixed a TB on /kick
2011-10-27 21:20:26 +02:00
Florent Le Coz
aa6738800d
Fix crash on completion of recent words containing xhtml-im attributes
...
fixes #2278
2011-10-20 21:55:24 +02:00
mathieui
b29f11ce19
/affiliation command
...
(without the 'outcast' affiliation ATM)
2011-10-17 21:30:36 +02:00
mathieui
69c6b38894
remove /visitor /participant /moderator and replace them with /role
2011-10-17 21:29:39 +02:00
Mathieu Pasquet
7d392c6093
Typo
2011-10-17 19:07:53 +02:00
mathieui
ad45e89ded
User role management in MUC (ie /visitor /particpant /moderator)
2011-10-14 01:32:14 +02:00
mathieui
14702b1806
Fixed some typos
2011-10-11 23:04:40 +02:00
mathieui
2479201b30
Fix the data forms
2011-10-11 23:00:29 +02:00
mathieui
be2d66f8a2
Fixed #2268
2011-10-09 19:54:13 +02:00
Florent Le Coz
e35bf19aed
fixes #2263
2011-10-04 18:56:02 +02:00
Florent Le Coz
bfcf20f301
By default, log only critical messages. This avoid
...
warnings to be displayed on stdout if no debug file was
specified
2011-10-02 21:18:25 +02:00
Florent Le Coz
5ae665b253
Fix completion case-sensitiveness
2011-10-02 17:39:18 +02:00
mathieui
d589896599
Adds a way to delete the commands without reloading the plugin
2011-10-02 13:21:51 +02:00
Todd Eisenberger
b7279678df
Frumious hacks to make plugins less likely to kill a client
2011-10-02 00:09:50 -07:00
mathieui
ed87f26db7
Added a connect() function to the plugins API, for internal event
2011-10-01 23:48:42 +02:00
Florent Le Coz
4dfe2229da
remove white from the nick colors
2011-10-01 22:47:47 +02:00
mathieui
a5c067fd93
/clear command in MUC
2011-10-02 00:12:22 +02:00
Florent Le Coz
347733804f
Do not try to cycle completion on commands if there was only one possibily.
...
You can now see by the space appended at the end if it was the only one.
It lets you complete arguments without having to add a stupid space after the command name
2011-10-01 20:46:20 +02:00
Todd Eisenberger
d02c764c47
More contact management commands
2011-10-01 05:26:19 -07:00
Florent Le Coz
7683bf92a7
fixed #2258
2011-09-30 17:30:06 +02:00
Florent Le Coz
fdf6a00bbc
fixes #2185 completion can be done with the cursor ANYWHERE!
2011-09-30 17:20:36 +02:00
Florent Le Coz
c89d9a3aa4
use getiterator if python < 3.2
2011-09-29 23:19:21 +02:00
Florent Le Coz
90699130b9
²
2011-09-29 02:08:47 +02:00
Florent Le Coz
e9e15058bd
Mais putain
2011-09-29 02:07:45 +02:00
Florent Le Coz
deea31d9b7
merge missing changeset from default into plugin, so both branches are up to date
2011-09-29 00:25:01 +02:00
Florent Le Coz
31cad9a4ac
Fix that resize bug AGAIN
2011-09-29 00:19:33 +02:00
Todd Eisenberger
7b8a860de9
Fix loading already loaded plugins
2011-09-27 10:14:18 -07:00
mathieui
ff3c40c5b4
Fixes a bug when the user leaves a MucTab, goes to a privatetab and /join with no args
...
(it joined the muc, but did not open a new tab)
2011-09-26 10:40:04 +02:00
mathieui
a80338f25b
[teisenbe] Make the data forms more usable (highlight of the selected row) + theme colors instead of hardcoded ones
2011-09-26 09:35:58 +02:00
mathieui
4f96907653
Fix the DataFormTab (was broken with the new theming method)
2011-09-26 01:12:15 +02:00
Florent Le Coz
55d624c0ee
exec plugin
2011-09-25 21:16:31 +02:00
Florent Le Coz
47c052acf4
Add a send_message() function for plugins
2011-09-25 21:15:00 +02:00
mathieui
c427ce7ac0
Remove /pubsub command
2011-09-25 20:30:23 +02:00
mathieui
6037c4be65
Fix some more presence leaks
2011-09-25 20:28:57 +02:00
Florent Le Coz
c80022e816
merge default into plugins branch. So that branch is still up to date too
2011-09-25 20:12:43 +02:00
Florent Le Coz
d5a013dd6a
Fixes the refresh issue when the user of a private conversation leaves/joins
2011-09-25 19:36:08 +02:00
Florent Le Coz
24dda3ff25
and that
2011-09-25 19:31:42 +02:00
Florent Le Coz
7ee5f251d9
Restaure that
2011-09-25 19:30:09 +02:00
Florent Le Coz
8d67fbf133
merge
2011-09-25 19:28:31 +02:00
Florent Le Coz
674f151c38
Default theme is now ok, I think
2011-09-25 19:24:14 +02:00
mathieui
0f7ec35c97
Remove /pubsub command for the time being
2011-09-25 18:25:50 +02:00
Florent Le Coz
412e9c281c
Convert 256 colors to 8 if the terminal doesn’t support them
2011-09-25 15:58:27 +02:00
Florent Le Coz
e718682c7f
That.
2011-09-25 15:33:05 +02:00
Florent Le Coz
0ee2194d3c
Backed out changeset e811b4e21013
2011-09-25 15:32:00 +02:00
Florent Le Coz
b5ce85869b
Forgot that…
2011-09-25 15:31:12 +02:00
mathieui
00ed9b4842
[teisenbe] Fix a bug in case of XDG_CONFIG_HOME not set
2011-09-25 03:01:32 +02:00
mathieui
fd99fb32bb
[teisenbe] Make the data forms more usable (add color to the labels)
2011-09-25 02:50:03 +02:00
mathieui
b63132d32d
remove yet another unneeded call for GlobalInfoBar
2011-09-25 02:43:52 +02:00
mathieui
1a6d903e34
Add a config file to the plugins by default
2011-09-25 02:39:00 +02:00
Florent Le Coz
cac130e754
Autoload plugins
2011-09-24 23:44:52 +02:00
Florent Le Coz
eb096892a9
Completion for load and unload commands
2011-09-24 23:10:55 +02:00
Florent Le Coz
f275567478
[teisenbe] Use the imp module to import modules.
...
Also add a simple translator module
2011-09-24 22:26:31 +02:00
Florent Le Coz
5ac6b7f8dc
tg
2011-09-24 00:10:16 +02:00
Florent Le Coz
c7a0659a1d
merge
2011-09-24 00:02:09 +02:00
Emmanuel Gil Peyrot
6f1481e830
Really, really fix whitespace handling.
2011-09-23 23:50:43 +02:00
Emmanuel Gil Peyrot
8f675044b1
Really fix whitespace handling, and malformed CSS.
2011-09-23 23:47:25 +02:00
Florent Le Coz
1ff421075d
Do not remove trailing spaces in an XHTML-IM element’s text.
2011-09-23 23:01:13 +02:00
Florent Le Coz
a9d2cf8ff2
make colors work with 3-digits color numbers
2011-09-23 22:50:14 +02:00
Florent Le Coz
b5beb9d8bf
Merge branch 256 into master
2011-09-23 21:31:18 +02:00
Florent Le Coz
e3b933445f
[teisenbe] first attempt at a plugin system.
2011-09-23 17:43:01 +02:00
Emmanuel Gil Peyrot
8845cdce8e
Fix whitespace handling in XHTML.
2011-09-23 00:20:34 +02:00
Emmanuel Gil Peyrot
e37f98aa5d
Add support for 256 colors in XHTML messages, and fix a stupid bug with img without @alt.
2011-09-23 00:09:01 +02:00
mathieui
f34d3172a1
Fixes #2251
2011-09-21 17:44:41 +02:00
Florent Le Coz
700b11e42d
Handles 256 colors, easier theming and more flexible way to define colors
...
Doesn’t run yet if term doesn’t support 256 colors, I know
(thus the branch "256")
2011-09-21 00:52:03 +02:00
Florent Le Coz
46705e1861
oh, merge
2011-09-20 21:31:10 +02:00
Florent Le Coz
b9348519bb
merge
2011-09-20 21:22:24 +02:00
Florent Le Coz
6debaa6c3f
Do not limit the size of the windows, fixes #2246
2011-09-20 21:21:26 +02:00
mathieui
6ec1ca42cc
Fixes #2221
2011-09-20 01:27:57 +02:00
mathieui
a3b8452358
Fixes #2245
2011-09-20 00:53:49 +02:00
Emmanuel Gil Peyrot
00e12ccec1
Remove Elinks support and add a pure python XHTML/CSS parser.
2011-09-19 22:41:46 +02:00
Florent Le Coz
324fcf817c
And fix the display of the part message in that case
2011-09-17 19:18:49 +02:00
Florent Le Coz
195d461a86
merge
2011-09-17 18:59:32 +02:00
Florent Le Coz
900bf8c97a
Fix a bug where the private tabs would pop on the screen when the user parts or join the associated room
2011-09-17 18:59:14 +02:00
Florent Le Coz
02593a265e
merge
2011-09-17 14:17:12 +02:00
Florent Le Coz
a8537481ac
Refresh only once, not at every refresh() call, after we resized the screen once.
2011-09-17 14:15:31 +02:00
mathieui
f5258c2e92
Cycle on the disconnected tabs with M-e
2011-09-16 23:33:04 +02:00
Florent Le Coz
2484889225
merge
2011-09-16 16:00:59 +02:00
Florent Le Coz
489852a593
Fixes the new-message-separator (I think)
2011-09-16 16:00:33 +02:00
mathieui
a3959bd12c
Fixes #2244
2011-09-15 00:15:05 +02:00
Florent Le Coz
c332732d13
Clean a little bit the poopt module, and fix some comments
2011-09-14 13:59:25 +02:00
Florent Le Coz
b33a09f0f6
Keep one bool LESS in each line, YAY, that’s HUGE.
2011-09-13 01:59:50 +02:00
Florent Le Coz
c8d80807c7
fix issues with too long nicknames
2011-09-13 01:55:52 +02:00
mathieui
d1bf1dfa53
Fix the (now rare) tracebacks from curses.
2011-09-12 20:22:12 +02:00
mathieui
455a2746bc
Disable the pubsub.louiz.org browser
2011-09-12 20:21:32 +02:00
mathieui
7fd3f9b0fa
Fixes #2213
2011-09-12 18:44:19 +02:00
mathieui
1df856969f
The active chat state is not sent anymore with a message when being xa or away.
2011-09-12 17:17:49 +02:00
mathieui
e372d2e8bc
Refresh properly the display after private part/join
2011-09-12 10:56:38 +02:00
mathieui
7a31299292
Add a color state for disconnected rooms ( Fixes #2166 )
2011-09-12 10:56:02 +02:00
mathieui
d24b3c4295
PGUP/PGDOWN on muc list (partially fixes #2165 )
2011-09-12 01:24:43 +02:00