]> jfr.im git - irc/irssi/irssi.git/log
irc/irssi/irssi.git
9 years agoremove container_of, remove some underscores in the process origin/orphaned/native-proxy
hawken93 [Sat, 4 Oct 2014 23:03:46 +0000 (01:03 +0200)] 
remove container_of, remove some underscores in the process

9 years agoadd missing proxy_username setting
hawken93 [Sat, 4 Oct 2014 23:02:50 +0000 (01:02 +0200)] 
add missing proxy_username setting

9 years agoRemoved casts in g_free(), therefore also removed some const declarations
hawken93 [Sat, 4 Oct 2014 21:22:50 +0000 (23:22 +0200)] 
Removed casts in g_free(), therefore also removed some const declarations

9 years agoFix compile warnings
hawken93 [Fri, 3 Oct 2014 23:14:19 +0000 (01:14 +0200)] 
Fix compile warnings

9 years agoFixed stuff broken by the coding style cleanup
hawken93 [Fri, 3 Oct 2014 22:52:26 +0000 (00:52 +0200)] 
Fixed stuff broken by the coding style cleanup

9 years agoChange coding style
hawken93 [Fri, 3 Oct 2014 21:41:57 +0000 (23:41 +0200)] 
Change coding style

9 years agoChange coding style
hawken93 [Fri, 3 Oct 2014 21:30:37 +0000 (23:30 +0200)] 
Change coding style

9 years agono patching unrelated stuff
hawken93 [Fri, 3 Oct 2014 15:43:50 +0000 (17:43 +0200)] 
no patching unrelated stuff

9 years agoPorting some stuff to modern git version
hawken93 [Fri, 3 Oct 2014 15:34:24 +0000 (17:34 +0200)] 
Porting some stuff to modern git version

9 years agohttp-proxy: fixed bad return value
Enrico Scholz [Wed, 7 Apr 2010 07:50:12 +0000 (09:50 +0200)] 
http-proxy: fixed bad return value

9 years agoPROXY: merge proxy methods into buildsystem
Enrico Scholz [Tue, 26 Feb 2008 17:06:02 +0000 (18:06 +0100)] 
PROXY: merge proxy methods into buildsystem

This patch adds the code and rules to build the various proxy methods.

9 years agoPROXY/SOCKS5: added methods for SOCKS5 proxies
Enrico Scholz [Tue, 26 Feb 2008 17:04:40 +0000 (18:04 +0100)] 
PROXY/SOCKS5: added methods for SOCKS5 proxies

This patch adds code for connecting through SOCKS5 proxies. It was
primarily written for use with TOR, so there are some open issues:

* it only allows to make proxy requests with full hostnames; ipv4/ipv6 is
  not supported

* GSSAPI authentication (which is mentioned as mandatory in RFC 1928) is
  not implemented

* plaintext authentication is untested

To use it
* set 'proxy_type' to 'socks5'

9 years agoPROXY/HTTP: added methods for HTTP proxies
Enrico Scholz [Tue, 26 Feb 2008 16:57:14 +0000 (17:57 +0100)] 
PROXY/HTTP: added methods for HTTP proxies

This patch adds code for connecting through HTTP proxies. Open issues are:

* support of proxy authentication
* a possible DOS due to the usage of g_io_channel_read_line_string() which
  does not allow to specify a maximum length of line.

To use this method:
* set 'proxy_type' to 'http'

9 years agoPROXY/SIMPLE: added simple proxy method
Enrico Scholz [Tue, 26 Feb 2008 16:06:58 +0000 (17:06 +0100)] 
PROXY/SIMPLE: added simple proxy method

This method implements the string + string_after mechanism implemented by
previous irssi versions.

To use, set
* proxy_type to 'simple' or keep it empty
* string + string_after in the known ways

9 years agoPROXY: implemented native proxy support
Enrico Scholz [Tue, 26 Feb 2008 16:29:10 +0000 (17:29 +0100)] 
PROXY: implemented native proxy support

This patch creates a hook into the net_connect*() methods which call a
method to connect to a proxy.

Previous solution to send certain strings in the normal IRC dialog was
some kind of hack as most proxies require some kind of negotation.

E.g. HTTP proxies sent a 'HTTP/1.0 200 Connection established' HTTP header
and clients have to wait for it.  Else, sent bytes of the following IRC
login will be dropped silently.

With old method, it is also impossible to tunnel SSL IRC connections
through the proxy as proxy speaks plain text or a special protocol while
e.g. 'CONNECT ... HTTP/1.0' will be encrypted with key of IRC server.

There are further enhancements possible: the whole net_connect stuff
should be made asynchronously. Currently, only the hostname is resolved
in the background (which makes little sense of local proxies usually).

9 years agoMerge pull request #140 from sebth/master
Alexander Færøy [Wed, 1 Oct 2014 19:55:56 +0000 (21:55 +0200)] 
Merge pull request #140 from sebth/master

Make line splitting fail-safe

9 years agoMerge pull request #142 from dequis/away-with-no-reason
Alexander Færøy [Wed, 1 Oct 2014 19:54:00 +0000 (21:54 +0200)] 
Merge pull request #142 from dequis/away-with-no-reason

irc_server_send_away: don't send empty param if there's no away reason

9 years agoMerge pull request #144 from jubalh/master
Geert Hauwaerts [Thu, 11 Sep 2014 18:20:49 +0000 (20:20 +0200)] 
Merge pull request #144 from jubalh/master

source cleanup: remove trailing whitespaces

9 years agosource cleanup: remove trailing whitespaces
Michael Vetter [Thu, 11 Sep 2014 17:10:33 +0000 (19:10 +0200)] 
source cleanup: remove trailing whitespaces

9 years agoirc_server_send_away: don't send empty param if there's no away reason
dequis [Wed, 10 Sep 2014 00:14:07 +0000 (21:14 -0300)] 
irc_server_send_away: don't send empty param if there's no away reason

9 years agoMake line splitting fail-safe
Sebastian Thorarensen [Sun, 31 Aug 2014 22:11:47 +0000 (00:11 +0200)] 
Make line splitting fail-safe

The userhost Irssi uses for line splitting can in some cases be wrong,
for instance when a proxy is used or when a server cloaks the hostname
without telling the client. Now Irssi always assumes the userhost is of
maximum length. 10 for username (common value) and 63 for hostname (in
RFC 2812).

9 years agoHead is now 0.8.17-head.
Alexander Færøy [Sun, 31 Aug 2014 16:35:15 +0000 (18:35 +0200)] 
Head is now 0.8.17-head.

9 years agoPrepare for irssi 0.8.17-rc2. 0.8.17-rc2
Alexander Færøy [Sun, 31 Aug 2014 16:34:30 +0000 (18:34 +0200)] 
Prepare for irssi 0.8.17-rc2.

9 years agoMerge pull request #134 from ailin-nemui/missing-printtext-after-signal
Alexander Færøy [Tue, 26 Aug 2014 19:49:43 +0000 (21:49 +0200)] 
Merge pull request #134 from ailin-nemui/missing-printtext-after-signal

Add the signal for printtext_after that was missed in the original commit.

9 years agoAdd the signal for printtext_after that was missed in the original commit.
Ailin Nemui [Mon, 25 Aug 2014 12:50:41 +0000 (14:50 +0200)] 
Add the signal for printtext_after that was missed in the original commit.

Now properly sends "gui print text after finished" signal when using
the printtext_after API that was fixed after 0.8.16

9 years agoMerge pull request #123 from ailin-nemui/terminfo-scroll-check-bounds
Alexander Færøy [Sat, 9 Aug 2014 10:24:45 +0000 (12:24 +0200)] 
Merge pull request #123 from ailin-nemui/terminfo-scroll-check-bounds

Add bounds check to array access in terminfo driver.

9 years agoAdd bounds check to array access in terminfo driver.
Ailin Nemui [Sat, 9 Aug 2014 09:40:37 +0000 (11:40 +0200)] 
Add bounds check to array access in terminfo driver.

this fixes a crash due to illegal memory access that can occur if
something is printed to the screen on the "terminal resized"
handler. It is not clear to me whether this race condition can be
triggered by external incoming messages, but it might be better safe
than sorry.

9 years agoMerge pull request #109 from cpbills/master
tomaw [Fri, 8 Aug 2014 17:57:50 +0000 (18:57 +0100)] 
Merge pull request #109 from cpbills/master

Fix right aligned statusbar item redrawing

9 years agoUpdated ALIAS help
Geert Hauwaerts [Thu, 7 Aug 2014 21:36:53 +0000 (23:36 +0200)] 
Updated ALIAS help

Updated ALIAS help.

9 years agoApplied grammar and styling corrections
Geert Hauwaerts [Thu, 7 Aug 2014 20:00:40 +0000 (22:00 +0200)] 
Applied grammar and styling corrections

Applied grammar and styling corrections.

9 years agoSyntax rewrite of U-Z commands
Geert Hauwaerts [Tue, 5 Aug 2014 20:00:30 +0000 (22:00 +0200)] 
Syntax rewrite of U-Z commands

Rewrote the syntax documentation of U-Z commands.

9 years agoMerge pull request #118 from ailin-nemui/mirc_blink_fix-fix
Alexander Færøy [Tue, 5 Aug 2014 19:21:37 +0000 (21:21 +0200)] 
Merge pull request #118 from ailin-nemui/mirc_blink_fix-fix

fix mirc_blink_fix

9 years agoMerge pull request #121 from dgl/rawlog-fix
Alexander Færøy [Tue, 5 Aug 2014 19:21:02 +0000 (21:21 +0200)] 
Merge pull request #121 from dgl/rawlog-fix

Fix rawlog saving after dac67a5 broke it

9 years agoFix rawlog saving after dac67a5 broke it
David Leadbeater [Tue, 5 Aug 2014 16:21:02 +0000 (17:21 +0100)] 
Fix rawlog saving after dac67a5 broke it

9 years agofix mirc_blink_fix
Ailin Nemui [Thu, 31 Jul 2014 00:34:18 +0000 (02:34 +0200)] 
fix mirc_blink_fix

the background colours were totally off with mirc_blink_fix
enabled. oops.

reported by wodim

9 years agoFixed a typo in the cmdmax argument
Geert Hauwaerts [Wed, 30 Jul 2014 21:27:41 +0000 (23:27 +0200)] 
Fixed a typo in the cmdmax argument

Fixed a typo in the cmdmax argument.

9 years agoUpdated the documentation for LIST
Geert Hauwaerts [Wed, 30 Jul 2014 21:12:39 +0000 (23:12 +0200)] 
Updated the documentation for LIST

Updated the documentation for LIST.

9 years agoMerge pull request #112 from ailin-nemui/italics-exception
Geert Hauwaerts [Wed, 30 Jul 2014 20:24:24 +0000 (22:24 +0200)] 
Merge pull request #112 from ailin-nemui/italics-exception

fix rules for italics emphasis

9 years agoRemoved the default autojoin channels
Geert Hauwaerts [Wed, 30 Jul 2014 20:21:37 +0000 (22:21 +0200)] 
Removed the default autojoin channels

Removed the default autojoin channels.

9 years agoSyntax rewrite for S-commands
Geert Hauwaerts [Wed, 30 Jul 2014 12:29:06 +0000 (14:29 +0200)] 
Syntax rewrite for S-commands

Rewrote the syntax documentation for all commands starting with S.

9 years agoRemoved the obsolete SQUERY and SERVLIST commands
Geert Hauwaerts [Wed, 30 Jul 2014 11:02:26 +0000 (13:02 +0200)] 
Removed the obsolete SQUERY and SERVLIST commands

Removed the obsolete SQUERY and SERVLIST commands.

9 years agoFix typo in help for network command
tomaw [Fri, 25 Jul 2014 16:05:19 +0000 (17:05 +0100)] 
Fix typo in help for network command

9 years agoMerge pull request #111 from ailin-nemui/colour-break
Geert Hauwaerts [Thu, 24 Jul 2014 19:52:01 +0000 (21:52 +0200)] 
Merge pull request #111 from ailin-nemui/colour-break

fix colour 0 again

9 years agofix rules for italics emphasis
Ailin Nemui [Thu, 24 Jul 2014 07:42:57 +0000 (09:42 +0200)] 
fix rules for italics emphasis

while the last patch did stop /path/.xxx from turning italic, it also
stopped any other /emphasis/ from becoming italic. correct this by
testing for ispunct, so spaces are valid italic terminators

9 years agofix colour 0 again
Ailin Nemui [Wed, 23 Jul 2014 22:09:48 +0000 (00:09 +0200)] 
fix colour 0 again

the previous commit was broken, as it conflicted with the colour
\#000000. Now both the "real colour black" and the "terminal colour 0"
are working.

9 years agoMerge pull request #110 from ailin-nemui/colour-break
Geert Hauwaerts [Wed, 23 Jul 2014 21:58:22 +0000 (23:58 +0200)] 
Merge pull request #110 from ailin-nemui/colour-break

restore the colour 0 ("black") that got broken by extended colours

9 years agorestore the colour 0 ("black") that got broken by extended colours
Ailin Nemui [Wed, 23 Jul 2014 21:38:38 +0000 (23:38 +0200)] 
restore the colour 0 ("black") that got broken by extended colours

the colour 0 was broken by the extended colours patch because it needs
an explicit bit check (lower bits will be false since it is 0)

Thanks to lhynes for the report

9 years agoFix right aligned statusbar item redrawing
Christopher P. Bills [Wed, 23 Jul 2014 02:03:46 +0000 (22:03 -0400)] 
Fix right aligned statusbar item redrawing

Fixes Github issue #97 https://github.com/irssi/irssi/issues/97

Fix proposed by ailin-nemui, built and tested on Debian Jessie using
0.8.15 source, tested by GeertHauwaerts as well.

9 years agoMerge pull request #100 from ailin-nemui/24bit-uninitialised
Alexander Færøy [Sun, 20 Jul 2014 17:37:37 +0000 (19:37 +0200)] 
Merge pull request #100 from ailin-nemui/24bit-uninitialised

fix uninitialised copy on 24bit colours

9 years agofix uninitialised copy on 24bit colours
Ailin Nemui [Fri, 18 Jul 2014 11:56:02 +0000 (13:56 +0200)] 
fix uninitialised copy on 24bit colours

9 years agoSyntax rewrite for R-commands
Geert Hauwaerts [Tue, 15 Jul 2014 17:52:56 +0000 (19:52 +0200)] 
Syntax rewrite for R-commands

Rewrote the syntax documentation for all commands starting with the
letter R.

9 years agoRemoved the obsolete RPING command
Geert Hauwaerts [Mon, 14 Jul 2014 18:38:01 +0000 (20:38 +0200)] 
Removed the obsolete RPING command

The RPING command is obsolete.

9 years agoFixing a typo
Geert Hauwaerts [Mon, 14 Jul 2014 11:19:31 +0000 (13:19 +0200)] 
Fixing a typo

Fixing a typo.

9 years agoMerge pull request #96 from dgl/news-update
Alexander Færøy [Sun, 13 Jul 2014 19:27:10 +0000 (21:27 +0200)] 
Merge pull request #96 from dgl/news-update

Update NEWS

9 years agoirssi-version.h should only be a phony target if build in maintainer mode
Alexander Færøy [Sun, 13 Jul 2014 19:24:36 +0000 (21:24 +0200)] 
irssi-version.h should only be a phony target if build in maintainer mode

9 years agoUpdate NEWS
David Leadbeater [Sun, 13 Jul 2014 19:01:08 +0000 (20:01 +0100)] 
Update NEWS

9 years agoFixed an example of QUOTE
Geert Hauwaerts [Sun, 13 Jul 2014 12:10:40 +0000 (14:10 +0200)] 
Fixed an example of QUOTE

Fixed an example of QUOTE

9 years agoMerge pull request #94 from dajohi/uninitialized
Geert Hauwaerts [Sat, 12 Jul 2014 20:41:28 +0000 (22:41 +0200)] 
Merge pull request #94 from dajohi/uninitialized

Avoid using uninitalized values.

9 years agoAvoid using uninitalized values.
David Hill [Sat, 12 Jul 2014 20:35:42 +0000 (16:35 -0400)] 
Avoid using uninitalized values.

9 years agoSyntax documentation rewrite for Q-commands
Geert Hauwaerts [Sat, 12 Jul 2014 16:46:44 +0000 (18:46 +0200)] 
Syntax documentation rewrite for Q-commands

Rewrote the syntax documentation for all commands starting with the
letter Q.

9 years agoAligned the help for DEOP, DEVOICE and OP
Geert Hauwaerts [Fri, 11 Jul 2014 14:32:20 +0000 (16:32 +0200)] 
Aligned the help for DEOP, DEVOICE and OP

Aligned the help for DEOP, DEVOICE and OP

9 years agoSyntax documentation rewrite of O and P commands
Geert Hauwaerts [Thu, 10 Jul 2014 18:43:52 +0000 (20:43 +0200)] 
Syntax documentation rewrite of O and P commands

Rewrote the syntax documentation of the commands starting with the
letters O and P.

9 years agoRemoved the obsolete NOTE command
Geert Hauwaerts [Wed, 9 Jul 2014 16:33:10 +0000 (18:33 +0200)] 
Removed the obsolete NOTE command

I removed the binding for the NOTE command that doesn't exist anymore on
any major network.

9 years agoSyntax documentation rewrite for N-commands.
Geert Hauwaerts [Wed, 9 Jul 2014 16:21:39 +0000 (18:21 +0200)] 
Syntax documentation rewrite for N-commands.

Rewrote the syntax documentation for all commands starting with the
letter N.

9 years agoMerge pull request #90 from ailin-nemui/italics-exception
Alexander Færøy [Tue, 8 Jul 2014 19:10:01 +0000 (21:10 +0200)] 
Merge pull request #90 from ailin-nemui/italics-exception

more strict rules for italic emphasis to avoid file name clashes

9 years agoSyntax documentation rewrite for M-commands
Geert Hauwaerts [Tue, 8 Jul 2014 19:02:35 +0000 (21:02 +0200)] 
Syntax documentation rewrite for M-commands

Rewrote the syntax documentation for all commands starting with the
letter M.

9 years agomore strict rules for italic emphasis to avoid file name clashes
Ailin Nemui [Tue, 8 Jul 2014 11:42:06 +0000 (13:42 +0200)] 
more strict rules for italic emphasis to avoid file name clashes

this additional check avoids /root/.hiddendir from italicising /root/,
because that is often used in path names

9 years agoMerge pull request #88 from dgl/banner
Geert Hauwaerts [Tue, 8 Jul 2014 10:00:45 +0000 (12:00 +0200)] 
Merge pull request #88 from dgl/banner

Only show the banner when not connecting to servers

9 years agoSuggest /HELP rather than HELP
David Leadbeater [Tue, 8 Jul 2014 08:24:12 +0000 (09:24 +0100)] 
Suggest /HELP rather than HELP

At this point cmdchars is definitely / and the user might not know they
need to add / to a command.

9 years agoChange to printtext for first time message too
David Leadbeater [Tue, 8 Jul 2014 08:23:55 +0000 (09:23 +0100)] 
Change to printtext for first time message too

9 years agoOnly show banner if not connecting to servers
David Leadbeater [Tue, 8 Jul 2014 00:38:08 +0000 (01:38 +0100)] 
Only show banner if not connecting to servers

It's tricky to make the banner show first in all cases and it's unlikely
to be seen if someone is connecting to a server already, so just don't
show it.

9 years agoMerge pull request #86 from dgl/configure-hints
Alexander Færøy [Mon, 7 Jul 2014 21:51:26 +0000 (23:51 +0200)] 
Merge pull request #86 from dgl/configure-hints

Add some more helpful hints about packages to install to configure outpu...

9 years agoAdd some more helpful hints about packages to install to configure output
David Leadbeater [Mon, 7 Jul 2014 21:41:38 +0000 (22:41 +0100)] 
Add some more helpful hints about packages to install to configure output

9 years agoMerge pull request #15 from ailin-nemui/hilights-network-tag
Alexander Færøy [Mon, 7 Jul 2014 20:49:29 +0000 (22:49 +0200)] 
Merge pull request #15 from ailin-nemui/hilights-network-tag

FS#155 hilight -tag

9 years agocleanup hilight -network patch
Ailin Nemui [Sun, 6 Jul 2014 22:55:15 +0000 (00:55 +0200)] 
cleanup hilight -network patch

9 years agoFix Clang warnings
Alexander Færøy [Mon, 7 Jul 2014 20:26:04 +0000 (22:26 +0200)] 
Fix Clang warnings

This patch fixes a few warnings emitted by clang by removing the
initialization of the list by itself.

9 years agoMerge pull request #58 from ailin-nemui/italics
Alexander Færøy [Mon, 7 Jul 2014 20:16:23 +0000 (22:16 +0200)] 
Merge pull request #58 from ailin-nemui/italics

Implement italics support for Irssi

9 years agoSyntax documentation rewrite for L-commands
Geert Hauwaerts [Mon, 7 Jul 2014 17:47:51 +0000 (19:47 +0200)] 
Syntax documentation rewrite for L-commands

Rewrote the syntax documentation for all commands starting with L.

9 years agoMerge pull request #29 from sebth/master
Alexander Færøy [Mon, 7 Jul 2014 16:27:57 +0000 (18:27 +0200)] 
Merge pull request #29 from sebth/master

Properly split long IRC messages

9 years agoRestored the J and added a P alias
Geert Hauwaerts [Mon, 7 Jul 2014 09:18:32 +0000 (11:18 +0200)] 
Restored the J and added a P alias

I restored the J alias and added a new P alias; both aliases are there for convenience after community requests.

9 years agoFS#155 hilight -tag
Manuel Leiner [Sat, 11 Jan 2014 14:38:25 +0000 (15:38 +0100)] 
FS#155 hilight -tag

9 years agooptionally render /foo/ as italics
Lukas Mai [Tue, 29 Nov 2011 23:54:42 +0000 (00:54 +0100)] 
optionally render /foo/ as italics

9 years agoadd italics support; don't use standout for reverse
Lukas Mai [Sun, 6 Nov 2011 19:40:25 +0000 (20:40 +0100)] 
add italics support; don't use standout for reverse

9 years agoAdded the missing -! and -noautosendcmd options
Geert Hauwaerts [Sun, 6 Jul 2014 21:58:13 +0000 (23:58 +0200)] 
Added the missing -! and -noautosendcmd options

The SERVER ADD completion was missing the -! and -noautosendcmd options.

9 years agoFixed a compiler warning for statusbar_redraw
Geert Hauwaerts [Sun, 6 Jul 2014 21:27:55 +0000 (23:27 +0200)] 
Fixed a compiler warning for statusbar_redraw

Fixed a compiler warning for statusbar_redraw.

9 years agoAdd information about message splitting to NEWS
Sebastian Thorarensen [Sun, 6 Jul 2014 20:57:00 +0000 (22:57 +0200)] 
Add information about message splitting to NEWS

(...and AUTHORS.)

9 years agoFix minor coding style issues in message splitting
Sebastian Thorarensen [Sun, 6 Jul 2014 18:31:58 +0000 (20:31 +0200)] 
Fix minor coding style issues in message splitting

9 years agoAllow `server.split_message' being NULL
Sebastian Thorarensen [Sat, 5 Jul 2014 01:58:16 +0000 (03:58 +0200)] 
Allow `server.split_message' being NULL

Now a module can set `server.split_message = NULL' to disable message
splitting, instead of having to implement the function.

9 years agoReplace an indent of eight spaces with a tab
Sebastian Thorarensen [Thu, 19 Jun 2014 00:24:25 +0000 (02:24 +0200)] 
Replace an indent of eight spaces with a tab

9 years agoReplace a `goto out' with explicit freeing
Sebastian Thorarensen [Wed, 18 Jun 2014 23:11:08 +0000 (01:11 +0200)] 
Replace a `goto out' with explicit freeing

9 years agoIntroduce a MAX_USERHOST_LEN constant for IRC
Sebastian Thorarensen [Wed, 18 Jun 2014 23:02:35 +0000 (01:02 +0200)] 
Introduce a MAX_USERHOST_LEN constant for IRC

9 years agoMove the definition of the `split_line' settings
Sebastian Thorarensen [Wed, 18 Jun 2014 22:50:46 +0000 (00:50 +0200)] 
Move the definition of the `split_line' settings

9 years agoSplit long IRC `ACTION' messages
Sebastian Thorarensen [Tue, 17 Jun 2014 16:17:28 +0000 (18:17 +0200)] 
Split long IRC `ACTION' messages

Add line splitting logic to commands `/me' and `/action'.

9 years agoFix the `userhostlen' fallback in `split_message'
Sebastian Thorarensen [Tue, 17 Jun 2014 15:25:40 +0000 (17:25 +0200)] 
Fix the `userhostlen' fallback in `split_message'

ferret, the author of `splitlong-safe.pl' pointed out that `userhostlen'
should not only contain the maximum length of the hostname, but also the
maximum length of the username. Now 10 is used as the maximum username
length as a fallback. (`splitlong-safe.pl' uses the same limit.)

The username limit isn't defined in the standard, but 10 is common on
many networks. The odds that something goes wrong here is low, as
 1) the fallback limit is only used when the user has not yet joined a
    channel
 2) the maximum hostname length (63) gives some error margin as the
    hostname usually is shorter

9 years agoAvoid unnecessary splitting of lines
Sebastian Thorarensen [Mon, 16 Jun 2014 19:59:48 +0000 (21:59 +0200)] 
Avoid unnecessary splitting of lines

`split_line_end' could force lines to be unnecessarily split. This
commit fixes the problem by making sure that the last line isn't shorter
than `split_line_end'.

9 years agoAdd configurable split line prefixes and suffixes
Sebastian Thorarensen [Mon, 16 Jun 2014 17:59:12 +0000 (19:59 +0200)] 
Add configurable split line prefixes and suffixes

Add settings `split_line_start' and `split_line_end' analogous to
`splitlong_line_start' and `splitlong_line_end' in `splitlong.pl'. The
prefixes and suffixes are concatenated with a wrapper function to keep
`recode_split' and `strsplit_len' simple.

9 years agoProperly split long IRC messages
Sebastian Thorarensen [Fri, 13 Jun 2014 04:39:02 +0000 (06:39 +0200)] 
Properly split long IRC messages

This commit adds handling of long IRC messages to the core. In contrast
to the `splitlong.pl' plugin, multi-byte encoded and recoded messages
are properly split.

To allow for this, a new function has been added to the server struct:
`split_message'. `split_message' returns a string array with the message
splitted to substrings of a length that the server can handle. If a
protocol module doesn't have any limit, it can simply return a singleton
array with a copy of the message.

The `MSG' chat command now calls `split_message' before `send_message',
and emits `message own_public' / `message own_private' with each
substring, so that the string splitting will be visible in the UI.

`split_message' in the IRC module uses `recode_split' which in turn uses
iconv to properly split multi-byte encoded (and recoded) messages.

9 years agoMerge branch 'master' of https://github.com/irssi/irssi
Geert Hauwaerts [Sun, 6 Jul 2014 21:21:23 +0000 (23:21 +0200)] 
Merge branch 'master' of https://github.com/irssi/irssi

9 years agoMerge pull request #85 from dgl/werror
Alexander Færøy [Sun, 6 Jul 2014 21:05:34 +0000 (23:05 +0200)] 
Merge pull request #85 from dgl/werror

Make configure checks able to build with -Werror

9 years agoUpdated SERVER documentation
Geert Hauwaerts [Sun, 6 Jul 2014 20:52:50 +0000 (22:52 +0200)] 
Updated SERVER documentation

Added the noautosendcmd parameters to the SERVER syntax documentation