Sebastian Thorarensen
695a6a7d9b
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.
2014-07-06 23:24:10 +02:00
Sebastian Thorarensen
28a3dbe164
Replace an indent of eight spaces with a tab
2014-07-06 23:24:10 +02:00
Sebastian Thorarensen
ff08b3b022
Replace a `goto out' with explicit freeing
2014-07-06 23:24:10 +02:00
Sebastian Thorarensen
7bfe3a8fa1
Introduce a MAX_USERHOST_LEN constant for IRC
2014-07-06 23:24:10 +02:00
Sebastian Thorarensen
29a49c4688
Move the definition of the `split_line' settings
2014-07-06 23:24:10 +02:00
Sebastian Thorarensen
bb7bafc93c
Split long IRC `ACTION' messages
...
Add line splitting logic to commands `/me' and `/action'.
2014-07-06 23:24:10 +02:00
Sebastian Thorarensen
90f3dd612e
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
2014-07-06 23:24:09 +02:00
Sebastian Thorarensen
281c6d437d
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'.
2014-07-06 23:24:09 +02:00
Sebastian Thorarensen
5c05c854dc
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.
2014-07-06 23:24:09 +02:00
Sebastian Thorarensen
e6147fb8f2
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.
2014-07-06 23:24:09 +02:00
Geert Hauwaerts
43baf71efd
Merge branch 'master' of https://github.com/irssi/irssi
2014-07-06 23:21:23 +02:00
Alexander Færøy
b03b65e029
Merge pull request #85 from dgl/werror
...
Make configure checks able to build with -Werror
2014-07-06 23:05:34 +02:00
Geert Hauwaerts
4c6ba664c4
Updated SERVER documentation
...
Added the noautosendcmd parameters to the SERVER syntax documentation
2014-07-06 22:52:50 +02:00
David Leadbeater
dac67a567d
Check return values from some syscalls and warn if they fail
2014-07-06 21:52:03 +01:00
David Leadbeater
85d9fa1922
Fix compiler warning in IPv6 check
...
(This was why I saw a warning from the IPv4 code path, now fixed by 7949e4c
).
2014-07-06 21:51:22 +01:00
Geert Hauwaerts
19b636e2a2
Improved the UNACT example ALIAS
...
Improved the UNACT example ALIAS
2014-07-06 22:36:13 +02:00
Geert Hauwaerts
bea5cb6d02
Redraw the statusbar after reading the settings
...
I fixed a bug where the statusbar was not redrawn after reading the
settings.
2014-07-06 22:24:16 +02:00
Geert Hauwaerts
8c1e7d9c17
Updated the startup banner + added generic banner
...
I updated the banner displayed when you start Irssi for the first time
and I have added a banner that will be displayed everytime you start
Irssi.
2014-07-06 22:23:17 +02:00
David Leadbeater
7949e4c53f
Initialize in6 correctly
...
This is technically wrong as it then gets used as an IPv4 sockaddr, but it only
needs to be some 0s so this is easier than changing the IPADDR data structure or
adding a new API.
2014-07-06 19:56:13 +01:00
Alexander Færøy
2ff95c0649
Merge pull request #82 from ailin-nemui/256colour-cleanup
...
fix compiler warnings in extended colour code
2014-07-06 19:58:26 +02:00
David Leadbeater
beec29c305
Make configure checks able to build with -Werror
...
Also fix a few compiler warnings, this combined with pull #82 allows me to build
with CFLAGS="-Werror -Wall".
2014-07-06 18:56:17 +01:00
Alexander Færøy
1bf4753914
Merge pull request #84 from dgl/gitignore
...
Ignore build products in .gitignore
2014-07-06 19:38:21 +02:00
David Leadbeater
6b0a54628d
Ignore build products in .gitignore
2014-07-06 18:42:43 +01:00
Geert Hauwaerts
4ca8d56869
Updated the ALIAS documentation
...
Updated the ALIAS documentation.
2014-07-06 19:18:31 +02:00
Geert Hauwaerts
0885282294
Replaced google.com with irssi.org examples
...
Replaced google.com with irssi.org examples.
2014-07-06 18:53:05 +02:00
Geert Hauwaerts
66f5fb699b
Added information about the NO_ACT level
...
Added information about the NO_ACT level
2014-07-06 18:49:02 +02:00
Geert Hauwaerts
47b925917d
Added a new example for ALIAS
...
Added a new example for ALIAS
2014-07-06 18:36:20 +02:00
Geert Hauwaerts
074735db08
New syntax documentation for NETWORK and SERVER
...
Rewrote the syntax documentation for NETWORK and SERVER
2014-07-06 18:17:05 +02:00
Geert Hauwaerts
120508c14f
Syntax documentation rewrite for J-K commands
...
Rewrote the syntax documentation for all commands starting with the
letters J and K.
2014-07-06 15:00:46 +02:00
Geert Hauwaerts
06b6371ac5
Removed the obsolete J alias
...
Removed the obsolete J alias.
2014-07-06 14:14:07 +02:00
Geert Hauwaerts
0cb56a7c9a
Improved the default configuration file
...
Updated the aliases and default channels; general cleanup.
2014-07-06 02:45:33 +02:00
Geert Hauwaerts
3b76487d0f
Wrote the missing syntax documentation for UPTIME
...
Wrote the missing syntax documentation for UPTIME.
2014-07-06 02:44:28 +02:00
Geert Hauwaerts
492d98358d
Improved the IGNORE examples
...
Improved the IGNORE examples.
2014-07-06 02:11:31 +02:00
Geert Hauwaerts
e891b29aef
Improved some examples
...
Improved some examples.
2014-07-06 02:06:36 +02:00
Geert Hauwaerts
f4393e44b6
Updated the TARGMAX of the default servers.
...
Most servers were outdates with their current TARGMAX capab; everything
should be up to date now.
2014-07-06 00:57:37 +02:00
Geert Hauwaerts
ae9a6fd0c3
Updated the default network list.
...
Added EsperNet and NetFuze, removed WebChat and LinkNet.
2014-07-06 00:30:59 +02:00
Geert Hauwaerts
591e10b3b6
Syntax documentation rewrite for H-I-commands
2014-07-05 22:16:35 +02:00
Geert Hauwaerts
1be75a4bef
Merge pull request #83 from richlv/patch-1
...
Update connect.in
2014-07-05 19:49:58 +02:00
richlv
940566b111
Update connect.in
...
add trailing dot for consistency; mention that existing connections are kept
2014-07-05 20:47:06 +03:00
Alexander Færøy
ed51629514
Merge pull request #80 from dgl/noact
...
Change NO_ACT so it can be combined with other levels
2014-07-04 23:48:41 +02:00
Geert Hauwaerts
4c8fe0963c
Syntax documentation rewrite for F-commands
...
Rewrote the syntax documentation for all commands starting with the
letter F.
2014-07-04 20:38:37 +02:00
Ailin Nemui
c104627462
fix compiler warnings in extended colour code
2014-07-04 12:46:51 +02:00
Geert Hauwaerts
f295a02cda
Syntax documentation rewrite for E-commands
...
Rewrote the syntax documentation for commands starting with the letter
E.
2014-07-03 21:42:37 +02:00
Geert Hauwaerts
037fae0ed5
Syntax format changes for A-C commands
...
Updated the file format template for commands A through C.
2014-07-03 21:41:10 +02:00
Geert Hauwaerts
878411edc4
Syntax documentation rewrite for D-commands
...
Rewrote the syntax documentation for all commands starting with the
letter D.
2014-07-03 21:37:41 +02:00
Geert Hauwaerts
3f79c8553c
Syntax documentation rewrite for C-commands
...
Rewrote the syntax documentation for all the commands starting with the
letter C.
2014-07-03 17:41:15 +02:00
Alexander Færøy
fd3676e407
Merge pull request #48 from ailin-nemui/256-colour-history
...
256 colour support for Irssi
2014-07-02 23:17:36 +02:00
Geert Hauwaerts
0a22174264
Syntax documentation rewrite for B-commands
...
Rewrote the syntax documentation for all the commands starting with B.
2014-07-02 22:35:17 +02:00
Geert Hauwaerts
712ef12542
Merge branch 'master' of https://github.com/irssi/irssi
2014-07-02 22:26:46 +02:00
Geert Hauwaerts
b2f265f44e
Rewrote the syntax documentation for all the commands starting with A.
2014-07-02 22:25:33 +02:00