Emanuele Giaquinta
ca5f4ec1f9
Simplify sending of the first pasted line.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4912 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-16 09:19:27 +00:00
Wouter Coekaerts
f5d38ab5a2
Handle indent in textbuffer_line2text. This fixes indentation in /lastlog and buf.pl.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4910 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-15 22:04:57 +00:00
Emanuele Giaquinta
621761cff3
Handle bold/blink attributes like other attributes rather than mapping them to
...
the eighth bit of the color. The formats KBGCRMYW and the mirc colors are now
mapped to colors 8-15. fe-text translates colors 8-15 to bold/blink+0-7 if the
terminal supports only 8 colors.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4909 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-15 21:51:07 +00:00
Emanuele Giaquinta
169c55b949
Simplify, use 'o' printf conversion specifier to print number in octal.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4904 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-12 23:13:57 +00:00
Jilles Tjoelker
c5109787eb
Remove /wallchops, do not suggest other commands in /help wall.
...
The only major ircd supporting /wallchops also supports
/notice @#channel.
The /wall command has used /notice @#channel (if it is
supported which is pretty much everywhere) for a while
and so it can be used without problems on large channels.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4902 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-12 21:00:05 +00:00
Emanuele Giaquinta
27be963a86
Recode outgoing irc away messages, bug #412 .
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4901 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-12 20:49:48 +00:00
Emanuele Giaquinta
cf41f6d45d
Export server_send_away and use it in irc-servers-reconnect.c:sig_connected
...
instead of duplicating the code.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4900 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-12 20:31:41 +00:00
Emanuele Giaquinta
877c64a08c
Add perl __WARN__ handler for scripts, bug #427 .
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4898 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-12 18:04:39 +00:00
Emanuele Giaquinta
f0647439a9
Add Irssi::command_parse_options function to parse options for a command which
...
have been set with Irssi::command_set_options.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4896 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-11 23:33:47 +00:00
Emanuele Giaquinta
7b529aa530
Remove get_utf8_char/utf16_char_to_utf8 in favour of glib
...
g_utf8_get_char_validated/g_unichar_to_utf8.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4893 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-10 11:59:31 +00:00
Emanuele Giaquinta
04ea54a1a0
recode.h include fixup.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4892 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-10 00:31:00 +00:00
Emanuele Giaquinta
1b27be4abc
Emit message irc own_{action,notice,wall} and message dcc own{,_action} with
...
message in client encoding.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4891 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-09 23:53:40 +00:00
Emanuele Giaquinta
9003a61629
Move recoding of outgoing messages into irc send_message routine. Handlers for
...
message own_{private,public} now receive the message in the client encoding.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4890 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-09 23:33:24 +00:00
Emanuele Giaquinta
9ce4352e1d
Move recoding of incoming quit messages to irc 'event quit' handler.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4889 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-09 23:06:37 +00:00
Emanuele Giaquinta
c647f8b206
Revert part of r4041. It is not clear which bug it is supposed to fix, and the
...
change seems wrong anyway because notice/action message is already recoded in
fe-events.c:event_notice/ctcp_action.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4888 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-09 19:37:25 +00:00
Emanuele Giaquinta
110f94ceb6
Recode a WALL message also when sending a notice to @#channel.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4887 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-08 22:09:20 +00:00
Emanuele Giaquinta
483589efb5
Recode an incoming quit message once with a nick charset preference rather than
...
doing it for every joined channel the user was in with a channel charset
preference.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4885 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-04 14:05:57 +00:00
Emanuele Giaquinta
b555e18985
When returning G_IO_STATUS_ERROR in irssi_ssl_{read,write} create a GError with
...
the openssl error string.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4884 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-02 14:49:48 +00:00
Emanuele Giaquinta
fc85d71d12
Cleanup error handling in irssi_ssl_{read,write}. Return G_IO_STATUS_AGAIN if
...
openssl error is SSL_WANT_{READ,WRITE}, G_IO_STATUS_ERROR otherwise.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4883 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-02 14:02:00 +00:00
Jochen Eisinger
f8461d39bc
introduce the type Irssi::Irc::Client and signals to communicate with proxy
...
clients to allow for scripting parts of the irssi-proxy.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4882 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-02 12:13:36 +00:00
Emanuele Giaquinta
73b18f2672
Fix r4879 change.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4881 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-02 07:34:35 +00:00
Jilles Tjoelker
aa39fba88d
Remove the refcount on LINE_REC.
...
It seems to have no clear purpose.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4879 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-01 17:56:56 +00:00
Jilles Tjoelker
875adf35a0
Fix a memory leak with /lastlog -count and rejected (too much) /lastlog.
...
The matched lines would not be freed when they expired
from the buffer.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4878 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-10-31 10:57:32 +00:00
Jilles Tjoelker
c955bcd672
Also display 407 numerics that are not "duplicate channel".
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4877 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-10-28 17:29:49 +00:00
Emanuele Giaquinta
86a5e8085a
Remove scrollback_levelclear_levels setting and add a 'level' option to
...
'sb levelclear' to specify a comma separated list of levels.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4876 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-10-21 11:09:51 +00:00
Emanuele Giaquinta
5e4c08d8a1
Fix r4743 change, avoid sign extension.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4875 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-10-08 22:58:27 +00:00
Jilles Tjoelker
e563de4b81
Fix display of ratbox-style operspy whois (/whois !nick).
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4874 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-08-30 23:55:04 +00:00
Jilles Tjoelker
6e1d887a7a
Ignore DNS not found errors when considering reconnect.
...
Contrary to the standards, these are often transient.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4873 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-08-25 16:34:02 +00:00
Jilles Tjoelker
84e1e871e7
Fix crash on startup if perl is compiled in.
...
bug #618
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4872 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-08-23 16:05:47 +00:00
Emanuele Giaquinta
47f129e0a5
Call PERL_SYS_INIT3() and PERL_SYS_TERM() as documented in perlembed(1), patch
...
by Gerfried Fuchs (debian bug #495059 ).
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4871 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-08-22 11:54:32 +00:00
Emanuele Giaquinta
9fa8cbe7a2
Revert recode changes r4483 and r4715.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4867 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-08-02 13:15:38 +00:00
Emanuele Giaquinta
d788673eb9
Set null encoding for file channels.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4866 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-08-01 12:38:58 +00:00
Jilles Tjoelker
3540d21ee1
Include various overheads in /sb status memory count.
...
Overheads caused by the "view" cache are not included.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4864 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-06-19 21:57:52 +00:00
Emanuele Giaquinta
21abb51130
Cache charset related data rather than computing it everytime recode_{in,out}
...
is called.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4862 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-06-10 22:49:00 +00:00
Emanuele Giaquinta
f84a7d9e2b
Add 'actlist_names' option to add active items names in 'act' statusbar item.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4860 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-06-10 10:21:00 +00:00
Emanuele Giaquinta
8c482d03a9
Pass NULL to settings_set_str to reset term_charset to its default
...
value rather than hardcoding the string.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4859 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-06-06 22:19:57 +00:00
Emanuele Giaquinta
1aa6cbc3f9
Remove kludge and add the 'setup changed' handler with higher priority
...
so that term_charset validation is performed before any use.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4858 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-06-06 22:07:56 +00:00
Wouter Coekaerts
1a79bd055c
Fix /set hilight_level not taking effect immediately (bug #598 ). Patch by exg.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4857 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-06-04 19:33:00 +00:00
Emanuele Giaquinta
1e3e062b24
Simplify, append directly to GString rather than allocating a
...
temporary string.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4854 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-31 13:18:43 +00:00
Jilles Tjoelker
278dfd7f76
Reduce some memory waste in the scrollback buffer.
...
Formerly, TEXT_CHUNK_REC was slightly more than a page.
Due to glib changes (GMemChunk -> GSlice), this is now
malloced directly, and many mallocs round up allocations
larger than a page to page boundaries.
On a whole this seems to save about 10%.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4853 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-30 23:17:37 +00:00
Emanuele Giaquinta
a01f13202f
Fix leak.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4851 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-27 18:19:34 +00:00
Jilles Tjoelker
647c3cb4da
Read more bytes at a time from servers.
...
(at most 2048 instead of 512)
This should reduce syscalls and TCP packets.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4849 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-24 20:55:27 +00:00
Emanuele Giaquinta
d917a439da
Cosmetic.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4848 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-24 15:43:12 +00:00
Emanuele Giaquinta
58d050db7c
Fix minor leak.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4847 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-23 11:19:43 +00:00
Emanuele Giaquinta
82d6797306
Reindent.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4846 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-23 10:05:44 +00:00
Emanuele Giaquinta
3236daa97a
Fix leaks.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4845 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-23 09:59:59 +00:00
Emanuele Giaquinta
54f5beb8f5
Do nothing in word_complete if erase is true and we are not continuing
...
a completion.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4844 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-23 09:47:40 +00:00
Emanuele Giaquinta
ae18e36735
Fix command description.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4842 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-23 07:44:16 +00:00
Emanuele Giaquinta
f053542dcf
Extend net_sendbuffer by adding a LINEBUF_REC member and a net_sendbuffer_receive_line
...
function to read linewise from the associated io channel.
Rewrite irc/dcc/proxy read logic on top of it.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4841 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-22 22:38:29 +00:00
Jilles Tjoelker
9f99376a8a
Allow increasing the send buffer to 1MB/connection, and warn if that is exceeded.
...
It should really close connections that exceed the
limit, but does not do that yet.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4840 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-22 21:42:29 +00:00