1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00
Commit Graph

4121 Commits

Author SHA1 Message Date
Emanuele Giaquinta
508f8e1ddb Add Irssi::UI::Window::get_history_lines to get the content of a window's
history.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4993 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-17 22:33:29 +00:00
Emanuele Giaquinta
822e6caee8 Revert r4871, it breaks /script reset.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4992 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-17 22:28:47 +00:00
Emanuele Giaquinta
2129c4b229 Properly unload the original script when using /script load to reload it.
bug #525, patch by Lukas Mai.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4991 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-16 22:02:02 +00:00
Emanuele Giaquinta
4534ef242d Use an io channel to write the config file.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4990 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-16 17:12:27 +00:00
Jilles Tjoelker
d993ce7b06 Use PERL_SYS_INIT3 with the correct pointer type for argv.
This fixes perl crashes on startup on some machines.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4989 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-15 22:21:31 +00:00
Emanuele Giaquinta
57282ee557 Doc fix.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4988 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-15 11:14:51 +00:00
Emanuele Giaquinta
b2566682ee Fix minor leak.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4987 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-15 11:02:23 +00:00
Emanuele Giaquinta
e5ba2d35e4 We require perl-5.6.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4986 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-15 10:34:46 +00:00
Emanuele Giaquinta
1da5914177 Remove unused and odd function.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4985 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-14 17:53:57 +00:00
Emanuele Giaquinta
01042aec2d Fix typos.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4984 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-14 17:19:42 +00:00
Emanuele Giaquinta
2f06196ffb Fix last change.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4983 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-13 18:51:25 +00:00
Emanuele Giaquinta
fd6bd4d829 Remove broken and unused format to add an indent function to a line.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4982 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-13 18:31:31 +00:00
Emanuele Giaquinta
9dcea776a1 Remove buggy /scrollback redraw - scrollback_save_formats.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-10 18:38:08 +00:00
Emanuele Giaquinta
b9cbba2ae2 Use window_get_theme.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4980 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-10 17:57:38 +00:00
Emanuele Giaquinta
5b4e05c553 Factor out printformat_module_dest_charargs function from
printformat_module_dest_args and use it in printformat_perl to remove code
duplication.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4979 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-10 15:00:06 +00:00
Emanuele Giaquinta
edc7dc26fe Remove memory chunks in favour of memory slices.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4978 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-08 12:39:11 +00:00
Emanuele Giaquinta
79df89b30a Add defines for memory slices functions for compatibility with glib
versions older than 2.10.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4977 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-08 11:39:27 +00:00
Emanuele Giaquinta
5b76b1585f Remove useless code, cur_line is always the last line of the textbuffer.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4976 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-04 15:56:54 +00:00
Emanuele Giaquinta
8cc7a02b4d Rewrite pidwait using g_child_watch_add.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4975 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-30 11:51:27 +00:00
Emanuele Giaquinta
baba2b7505 recvlen must be signed.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4974 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-30 10:39:21 +00:00
Emanuele Giaquinta
c1e214367d Use net_receive in sig_exec_input_reader.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4973 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-30 01:20:09 +00:00
Emanuele Giaquinta
725ccc249d Check server's connected flag rather than net-sendbuffer pointers in
sig_server_quit.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4972 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-22 01:07:11 +00:00
Emanuele Giaquinta
ad66af3c10 Remove useless net-sendbuffer init/deinit functions.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4971 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-22 00:11:33 +00:00
Emanuele Giaquinta
590ce173b3 Remove buffers GSList, it is unused since r1023.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4970 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-22 00:06:49 +00:00
Emanuele Giaquinta
bae9c1db7a Fix r4961 change, irssi-core.pl is transformed in a format string so literals
% must be escaped. Patch by Lukas Mai.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4969 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-17 18:56:56 +00:00
Jilles Tjoelker
fe4c5abe28 Preserve op/halfop/voice when /upgrading from before the prefixes change
(r4922). This also restores them when /upgrading from
a revision between r4922 and this one.
Note that other prefixes are still lost when /upgrading
from pre-r4922 irssi.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4968 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-13 21:42:42 +00:00
Jilles Tjoelker
251d956ddc prefix_add(): copy correct number of bytes
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4967 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-12 22:04:37 +00:00
Jilles Tjoelker
8c510be0a6 Document Irssi::signal_continue() and clarify new signal registration requirements
(r4953).


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4966 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-12 21:01:48 +00:00
Emanuele Giaquinta
1b7296dc5f Revert r4964, at least one script uses ypos.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4965 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-12 10:42:14 +00:00
Emanuele Giaquinta
feb95100ce Remove ypos field of TEXT_BUFFER_VIEW_REC, it is used to compute the row
position where to draw a new line and if the view is at the bottom of the
textbuffer, but the same information can be computed more easily by other
means.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4964 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-11 20:59:21 +00:00
Emanuele Giaquinta
f9f031826f Remove methods to create/destroy TextBuffer and TextBufferView and low level
api to add/remove lines, scripts should be fine using Window::print_after and
TextBufferView::remove_line.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4963 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-10 10:21:04 +00:00
Emanuele Giaquinta
29a56d7974 Add print_after method to Window perl object analogous to
gui_printtext_after but which also expands formats and forces a full
line.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4962 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-10 09:35:25 +00:00
Emanuele Giaquinta
0327b7d5dc Clean up script loading in general.
Don't leak local variables to eval'd code.
Set filename/line number to get better error messages from perl.
Use three-arg open and lexical filehandles to avoid surprises.
Include error reason in message for unopenable scripts.
Don't wrap script code in sub handler { } - this avoids spurious warnings and
should at least allow __END__ to work properly.
Patch by Lukas Mai.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4961 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-09 21:42:51 +00:00
Emanuele Giaquinta
7982a86420 Fix undefined behavior due to modifying PL_na twice between sequence points.
Patch by Lukas Mai.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4960 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-09 18:16:49 +00:00
Emanuele Giaquinta
20c362a93d Remove resize method of TextBufferView perl object, it is not useful
and dangerous.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4959 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-09 18:02:53 +00:00
Emanuele Giaquinta
d71aea5b2b Remove internal utf8 functions in favour of glib ones.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4958 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-09 11:59:16 +00:00
Emanuele Giaquinta
cba6199958 Cosmetic.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4957 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-09 11:45:23 +00:00
Emanuele Giaquinta
48d0135d3e Make some functions static.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4956 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-08 17:11:00 +00:00
Emanuele Giaquinta
8a5aa22ed8 Document command syntax.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4955 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-08 16:55:29 +00:00
Emanuele Giaquinta
770c906a1c Simplify.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4954 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-08 16:32:56 +00:00
Emanuele Giaquinta
8c64738cdc Add perl_signal_args_to_c() to convert signal parameters from Perl to C values,
and make Irssi::signal_emit/Irssi::signal_continue use it. Also make
perl_call_signal() turn NULLs into undef, so we can recover them in
perl_signal_args_to_c(), which is its inverse operation.
Patch by Lukas Mai.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4953 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-08 16:06:11 +00:00
Emanuele Giaquinta
0cea011470 Fix NETSPLIT_SERVER_REC substitution in get-signals.pl, reported by Lukas Mai.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4952 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-08 15:45:49 +00:00
Emanuele Giaquinta
8a1e8acfc4 Change get-signals.pl mime type to text/x-perl.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4951 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-08 15:39:12 +00:00
Emanuele Giaquinta
9ef51b0567 Simplify, isalnum && !isdigit == isalpha.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4950 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-07 23:30:00 +00:00
Emanuele Giaquinta
43bed5bb09 Simplify and remove dead code.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4949 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-07 15:49:04 +00:00
Emanuele Giaquinta
04a028d8c9 Simplify and remove dead code, MAIN_WINDOW_TEXT_HEIGHT(rec) >= WINDOW_MIN_SIZE
always holds.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4948 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-06 17:02:27 +00:00
Emanuele Giaquinta
fe9b63ef65 Always preserve the active mainwindow in mainwindows_resize_smaller,
prompted by report by Henri Kemppainen.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4947 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-06 12:36:41 +00:00
Emanuele Giaquinta
a644a200c1 Fix leak introduced in r1855.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4946 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-06 12:29:51 +00:00
Jilles Tjoelker
861781bac5 Add brief documentation for Irssi::signal_register() perl function.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4945 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-06 00:14:19 +00:00
Jilles Tjoelker
8994731d1b Add a notice to src/perl/perl-signals-list.h that it is autogenerated.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4944 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-05 23:59:49 +00:00