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

3119 Commits

Author SHA1 Message Date
Jilles Tjoelker
3ddd984bfc Allow /ban, /unban, /kickban, /knockout if channel is not synced.
Requesting ban lists from an unsynced channel will ask
them from the server, banning a user whose u@h irssi
does not know will ban nick!*@* and only bans irssi
knows about can be removed.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4925 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-28 20:43:59 +00:00
Jilles Tjoelker
6fe433ca0b Remove obsolete/wrong part of comment (irc server cmdcount).
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4924 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-28 18:49:31 +00:00
Jilles Tjoelker
89cd47bf3a Allow storing multiple "other" prefixes such as +q and +a.
Original patch by JasonX, somewhat changed by exg and me.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4922 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-28 00:16:51 +00:00
Emanuele Giaquinta
3f0743e749 Do not strip the comma in a mirc color if it is not followed by a digit, bug
#250.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4920 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-24 23:22:44 +00:00
Emanuele Giaquinta
be57a4e3e1 Remove apparently useless indirection through stub libtool library
files for libperl.a and DynaLoader.a when building perl support as
module.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4919 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-23 09:48:48 +00:00
Emanuele Giaquinta
da86080d40 Move check on term_type outside of strlen_big5.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4917 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-18 09:59:54 +00:00
Emanuele Giaquinta
ba002bbc13 Revert r4912.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4916 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-18 09:21:36 +00:00
Emanuele Giaquinta
9e247274d1 Do not call skip_target on a non irc server in irc 'own_public'
handler, based on a patch by Gabor Adam Toth.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4915 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-16 16:28:09 +00:00
Emanuele Giaquinta
718d85ceab Do not check in irc cmd_away that the active item server is an irc
server, it prevents /away from working when the active item server is
not an irc one. The check is already performed in
irc_server_send_away, so /away -one is unchanged. Patch by Gabor Adam
Toth.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4914 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-16 16:09:44 +00:00
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