summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-09-30Fix use-after-free bug with cached settings valuesAlexander Færøy
This patch fixes a couple of use-after-free bugs when caching various string related setting values. Fixes: #143
2014-09-11source cleanup: remove trailing whitespacesMichael Vetter
2014-09-09irc_server_send_away: don't send empty param if there's no away reasondequis
2014-09-01Make line splitting fail-safeSebastian Thorarensen
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).
2014-08-25Add the signal for printtext_after that was missed in the original commit.Ailin Nemui
Now properly sends "gui print text after finished" signal when using the printtext_after API that was fixed after 0.8.16
2014-08-23Speed up /reload when there are many ignores.Paul Johnson
With many ignores (a few thousand) /reload could take so long that connections were dropped. The problem is that nickmatch_rebuild() was being called for every ignore. The easy solution is to only call it once at the end.
2014-08-09Merge pull request #123 from ailin-nemui/terminfo-scroll-check-boundsAlexander Færøy
Add bounds check to array access in terminfo driver.
2014-08-09Add bounds check to array access in terminfo driver.Ailin Nemui
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.
2014-08-08Merge pull request #109 from cpbills/mastertomaw
Fix right aligned statusbar item redrawing
2014-08-05Syntax rewrite of U-Z commandsGeert Hauwaerts
Rewrote the syntax documentation of U-Z commands.
2014-08-05Merge pull request #118 from ailin-nemui/mirc_blink_fix-fixAlexander Færøy
fix mirc_blink_fix
2014-08-05Fix rawlog saving after dac67a5 broke itDavid Leadbeater
2014-07-31fix mirc_blink_fixAilin Nemui
the background colours were totally off with mirc_blink_fix enabled. oops. reported by wodim
2014-07-30Merge pull request #112 from ailin-nemui/italics-exceptionGeert Hauwaerts
fix rules for italics emphasis
2014-07-30Removed the obsolete SQUERY and SERVLIST commandsGeert Hauwaerts
Removed the obsolete SQUERY and SERVLIST commands.
2014-07-28Modify escape of ^ key so it can be used as well as Ctrl+^Ailin Nemui
Fixes FS#721 This makes Ctrl+^ and ^ bindable again as different keys. We do this by escaping single `^` as `^-`, which is not a valid control character (unlike `^^`) The original approach suggested in FS#721 is insufficient, it will break bindings such as `meta-^` because Irssi is convinced that `^` introduces a Control-key ("key combo") so it is waiting for what may follow.
2014-07-24fix rules for italics emphasisAilin Nemui
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
2014-07-24fix colour 0 againAilin Nemui
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.
2014-07-23restore the colour 0 ("black") that got broken by extended coloursAilin Nemui
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
2014-07-22Fix right aligned statusbar item redrawingChristopher P. Bills
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.
2014-07-18fix uninitialised copy on 24bit coloursAilin Nemui
2014-07-14Removed the obsolete RPING commandGeert Hauwaerts
The RPING command is obsolete.
2014-07-12Avoid using uninitalized values.David Hill
2014-07-09Removed the obsolete NOTE commandGeert Hauwaerts
I removed the binding for the NOTE command that doesn't exist anymore on any major network.
2014-07-08more strict rules for italic emphasis to avoid file name clashesAilin Nemui
this additional check avoids /root/.hiddendir from italicising /root/, because that is often used in path names
2014-07-08Suggest /HELP rather than HELPDavid Leadbeater
At this point cmdchars is definitely / and the user might not know they need to add / to a command.
2014-07-08Change to printtext for first time message tooDavid Leadbeater
2014-07-08Only show banner if not connecting to serversDavid Leadbeater
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.
2014-07-07Merge pull request #15 from ailin-nemui/hilights-network-tagAlexander Færøy
FS#155 hilight -tag
2014-07-07cleanup hilight -network patchAilin Nemui
2014-07-07Fix Clang warningsAlexander Færøy
This patch fixes a few warnings emitted by clang by removing the initialization of the list by itself.
2014-07-07Merge pull request #58 from ailin-nemui/italicsAlexander Færøy
Implement italics support for Irssi
2014-07-07Merge pull request #29 from sebth/masterAlexander Færøy
Properly split long IRC messages
2014-07-07FS#155 hilight -tagManuel Leiner
2014-07-07optionally render /foo/ as italicsLukas Mai
2014-07-07add italics support; don't use standout for reverseLukas Mai
2014-07-06Added the missing -! and -noautosendcmd optionsGeert Hauwaerts
The SERVER ADD completion was missing the -! and -noautosendcmd options.
2014-07-06Fixed a compiler warning for statusbar_redrawGeert Hauwaerts
Fixed a compiler warning for statusbar_redraw.
2014-07-06Fix minor coding style issues in message splittingSebastian Thorarensen
2014-07-06Allow `server.split_message' being NULLSebastian Thorarensen
Now a module can set `server.split_message = NULL' to disable message splitting, instead of having to implement the function.
2014-07-06Replace an indent of eight spaces with a tabSebastian Thorarensen
2014-07-06Replace a `goto out' with explicit freeingSebastian Thorarensen
2014-07-06Introduce a MAX_USERHOST_LEN constant for IRCSebastian Thorarensen
2014-07-06Move the definition of the `split_line' settingsSebastian Thorarensen
2014-07-06Split long IRC `ACTION' messagesSebastian Thorarensen
Add line splitting logic to commands `/me' and `/action'.
2014-07-06Fix the `userhostlen' fallback in `split_message'Sebastian Thorarensen
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-06Avoid unnecessary splitting of linesSebastian Thorarensen
`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-06Add configurable split line prefixes and suffixesSebastian Thorarensen
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-06Properly split long IRC messagesSebastian Thorarensen
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-06Merge pull request #85 from dgl/werrorAlexander Færøy
Make configure checks able to build with -Werror