1271 Commits

Author SHA1 Message Date
Sebastien Helleu
9857b44e4e guile: fix arguments given to callbacks (separate arguments instead of one list with arguments inside), guile >= 2.0 is now required (bug #38350)
Unfortunately this breaks compatibility with existing guile scripts, but this
change is needed to keep consistency with other scripting languages.

Now guile >= 2.0 is required, WeeChat can not compile any more with guile 1.8.
2013-02-19 22:49:59 +01:00
Sebastien Helleu
c43d48a9df guile: fix crash on calls to callbacks during load of script (bug #38343) 2013-02-19 19:49:12 +01:00
Sebastien Helleu
67838983ad irc: fix display of malformed CTCP (without closing char) (bug #38347) 2013-02-18 18:31:19 +01:00
Sebastien Helleu
bc079b007d irc: unmask smart filtered join if nick speaks in channel some minutes after the join, new option irc.look.smart_filter_join_unmask (task #12405)
The nick changes are tracked and will be unmasked with the join.
Events triggering the unmask of join are: a message (can be CTCP), a notice or
an update of topic.
2013-02-17 13:27:36 +01:00
Sebastien Helleu
6e3f6270d1 core: allow read of array in hdata without using index 2013-02-17 12:16:00 +01:00
Sebastien Helleu
c1bc23b052 irc: fix memory leak in purge of hashtables with joins (it was done only for the first server in the list) 2013-02-16 10:00:28 +01:00
Sebastien Helleu
01153cd478 core: add option "dirs" for command /debug 2013-02-14 20:45:12 +01:00
Sebastien Helleu
c37016e5ea core: fix detection of iconv with cmake on OS X (bug #38321) 2013-02-14 14:41:43 +01:00
Sebastien Helleu
10820c7336 core: add signal "window_opened" (task #12464) 2013-02-12 12:14:22 +01:00
Sebastien Helleu
c2aeb69c46 relay: add experimental websocket server support (RFC 6455) for irc and weechat protocols, new option relay.network.websocket_allowed_origins
It is a partial implementation of RFC 6455: fragmentation and control frames are
not yet supported.
Text and binary frames are supported.
2013-02-10 20:22:13 +01:00
Sebastien Helleu
d4b1b50311 core: fix structures before buffer data when a buffer is closed
This was causing a bug in relay plugin (weechat protocol): when a buffer was
closed, local variables were removed after buffer name, and when signal is sent
to client, the buffer name was wrong (already freed).
2013-02-07 22:11:25 +01:00
Sebastien Helleu
e4149b073d relay: add options "buffers" and "upgrade" for commands sync/desync in weechat protocol 2013-02-07 22:08:31 +01:00
Sebastien Helleu
1cdbc27abf core: fix refresh of line after changes with hdata_update (update flag "displayed" according to filters) 2013-02-04 08:29:57 +01:00
Sebastien Helleu
7a1f9a1d7f relay: fix commands sync/desync in weechat protocol (bug #38215)
Fix:
- use proper arguments in commands sync/desync (use argv[0] instead of argv[1])
- when searching if a buffer is synchronized, its name has higher priority on "*"
  (so first check if buffer is synchronized, and if not found, search if "*" is
  synchronized)
- when receiving a "nicklist_*" signal, check if the buffer is synchronized with
  flag "RELAY_WEECHAT_PROTOCOL_SYNC_NICKLIST"
2013-02-03 09:51:15 +01:00
Sebastien Helleu
6983d34e88 aspell: optimization on spellers to improve speed (save state by buffer), add info "aspell_dict", add completion "aspell_dicts"
Two hashtables have been added to store the spellers currently used (in all
buffers) and info for each buffer: array with pointers to spellers and state of
aspell for this buffer.
Therefore the spellers are not destroyed and created again on each buffer switch,
or each time screen is refreshed when window is split.
2013-01-31 19:40:41 +01:00
Sebastien Helleu
5d2382caab core: fix detection of python on Ubuntu Raring 2013-01-31 17:14:34 +01:00
Sebastien Helleu
cb617d8b23 core: fix hidden lines for messages without date when option weechat.history.max_buffer_lines_minutes is set (bug #38197) 2013-01-29 19:31:04 +01:00
Sebastien Helleu
f4dce04723 core: use default hash/comparison callback for keys of type integer/pointer/time in hashtable 2013-01-26 18:48:26 +01:00
Sebastien Helleu
05390016c0 irc: add color in output of /names when result is on server buffer (channel not joined) (bug #38070) 2013-01-25 19:05:23 +01:00
Sebastien Helleu
1918bd1d4e core: fix typo in ChangeLog 2013-01-22 09:58:09 +01:00
Sebastien Helleu
0e3bec6d2e scripts: do now allow empty script name in function "register" 2013-01-22 09:26:11 +01:00
Sebastien Helleu
5f7733c4a7 core: add missing formatting chars in ChangeLog 2013-01-20 15:18:10 +01:00
Sebastien Helleu
ff15aa40a6 core: update ChangeLog 2013-01-20 15:07:37 +01:00
Sebastien Helleu
ff15c0a41b Version 0.4.1-dev 2013-01-20 12:14:39 +01:00
Sebastien Helleu
762c96d85a Version 0.4.0 2013-01-20 09:21:06 +01:00
Sebastien Helleu
0ad8866d6b core: fix infinite loop when a regex gives an empty match (bug #38112) 2013-01-18 09:03:57 +01:00
Sebastien Helleu
68bbe7ca0a core: update ChangeLog 2013-01-17 10:07:21 +01:00
Sebastien Helleu
08d27eb81c Version 0.4.0-rc3 2013-01-14 12:21:19 +01:00
Sebastien Helleu
e0deceb366 core: fix click in item "buffer_nicklist" when nicklist is a root bar (bug #38080)
Argument "*" is now silently ignored in command /window.

When item "buffer_nicklist" is in a root bar, we use current window/buffer to
find which nick has been clicked (same behaviour as callback used to display bar
item "buffer_nicklist").
2013-01-14 12:16:25 +01:00
Sebastien Helleu
4123263b8c guile: fix bad conversion of shared strings (replace calls to scm_i_string_chars by scm_to_locale_string) (bug #38067) 2013-01-12 19:27:00 +01:00
Sebastien Helleu
1e20dd16e5 core: fix line returned when clicking on a bar (according to position and filling) (bug #38069) 2013-01-12 09:31:57 +01:00
Sebastien Helleu
db62b272b5 Revert "aspell: store dictionaries in buffer local variable "aspell_dict""
This reverts commit 8b61a557640e62e67f6eb7349c3a12cca9b43b5e.

The local variable in buffers introduced new display bugs and would need
some extra code and optimizations to fix.
This will be reintroduced after the release of version 0.4.0.
2013-01-11 16:07:45 +01:00
Sebastien Helleu
57024ab1e4 relay: fix duplicated messages sent to irc clients (when messages are redirected) (bug #37870) 2013-01-11 10:30:44 +01:00
Sebastien Helleu
8b61a55764 aspell: store dictionaries in buffer local variable "aspell_dict" 2013-01-10 23:30:14 +01:00
Sebastien Helleu
d5a5af88ca core: replace "behaviour" by "behavior" 2013-01-10 19:20:07 +01:00
Sebastien Helleu
aaa0cf1954 core: add bug #31572 (fixed) in ChangeLog 2013-01-10 15:12:02 +01:00
Sebastien Helleu
6d636b6118 Revert "perl: simplify code to load scripts"
This reverts commit 793a3cb1bad053ac3366cc34775dbc9b1e9ffb8a.

This commit was causing crash on Linux when loading scripts like buffers.pl.
2013-01-10 09:32:19 +01:00
Nei
793a3cb1ba perl: simplify code to load scripts 2013-01-09 18:15:51 +01:00
Nei
224a0f0afa perl: display script filename in error messages 2013-01-08 22:09:03 +01:00
Nei
2ca30ed7a9 perl: fix calls to callbacks during load of script when multiplicity is disabled (bug #38044) 2013-01-08 22:02:30 +01:00
Sebastien Helleu
bd21daebd1 api: allow return code WEECHAT_RC_OK_EAT in callbacks of hook_signal and hook_hsignal (stop sending the signal immediately) 2013-01-06 19:38:38 +01:00
Sebastien Helleu
faccb87a10 irc: fix display of actions (/me) when they are received from a relay client (in channel and private buffers) (bug #38027) 2013-01-06 12:25:34 +01:00
Sebastien Helleu
680486b1d3 Version 0.4.0-rc2 2013-01-05 11:33:22 +01:00
Sebastien Helleu
a421d330bf core: fix refresh of bars when applying layout (bug #37944, bug #37952) 2013-01-05 11:00:30 +01:00
Sebastien Helleu
a543404428 core: add buffer pointer in arguments for signals "input_search", "input_text_changed" and "input_text_cursor_moved" 2013-01-04 23:22:27 +01:00
Sebastien Helleu
fec8a1d122 aspell: ignore self and remote nicks in private buffers 2013-01-04 18:41:27 +01:00
Sebastien Helleu
3df1d70bb5 aspell: add signal "aspell_suggest" (sent when new suggestions are displayed) 2013-01-01 17:26:50 +01:00
Sebastien Helleu
77afab57ed core: fix scroll to bottom of window (default key: alt+end) when line displayed is bigger than chat area 2013-01-01 13:29:29 +01:00
Sebastien Helleu
632e2c1eae core: fix scroll in buffer after enabling/disabling some filters (if scroll is on a hidden line) (bug #37885) 2013-01-01 13:24:19 +01:00
Sebastien Helleu
f97598b4aa core: update copyright dates 2013-01-01 13:12:49 +01:00