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
Emanuele Giaquinta
14b9462ae4
Factor computation of fg/bg.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4943 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-05 13:55:23 +00:00
Emanuele Giaquinta
6c0463fbf7
Manually inline cell_width.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4942 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-03 20:14:58 +00:00
Emanuele Giaquinta
a266ce8d97
Simplify.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4941 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-03 19:09:54 +00:00
Emanuele Giaquinta
a065f97f87
Recode outgoing irc quit messages.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4940 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-02 16:13:15 +00:00
Emanuele Giaquinta
9459ac8127
Fix r1569, assign a proper mask to PRINT_FLAG_UNSET_LINE_START.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4939 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-02 13:14:09 +00:00
Emanuele Giaquinta
cba15593f2
Aux-sort settings by key in settings_get_sorted.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4938 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-01 19:29:41 +00:00
Emanuele Giaquinta
997a25c522
Factor the code to send an irc action into a function.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4937 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-01 18:35:10 +00:00
Emanuele Giaquinta
3f9148d0e3
Add function to set minimum/maximum size for a statusbar item.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4936 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-01 18:18:59 +00:00
Emanuele Giaquinta
545b0d5de8
Add public header with interfaces to manage statusbar items, bug #535 .
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4935 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-01 18:12:52 +00:00
Emanuele Giaquinta
227e90e52b
Simplify statusbar_item_default_handler by merging update_statusbar_bg and
...
reverse_controls and by using a GString.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4934 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-30 23:14:43 +00:00
Jilles Tjoelker
672022461a
Improve SSL error display.
...
Display more detailed error messages about SSL and
fix assertion failure warnings on some SSL errors.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4933 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-30 22:48:39 +00:00
Emanuele Giaquinta
c335a16f71
Make needlessly global variable local where used.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4932 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-30 14:48:54 +00:00
Emanuele Giaquinta
75666168b7
Do not check for fcntl.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4931 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-30 14:33:14 +00:00
Jilles Tjoelker
ee34525905
Revert r4924, the comment is correct after all.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4930 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-29 19:38:00 +00:00
Emanuele Giaquinta
184e4071c1
Remove obsolete part of comment.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4929 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-29 18:01:04 +00:00