summaryrefslogtreecommitdiff
path: root/src/irc
AgeCommit message (Collapse)Author
2015-08-29Remove extra line breakkyak
How did this extra break cripple in here?
2015-08-29Use HOST_NAME_MAX for userhost and hostname expandoskyak
Use HOST_NAME_MAX instead of hardcoded 100 for userhost and hostname expandos.
2015-08-29Use "(none)" as fallback for hostname and userhost expandoskyak
Use "(none)" instead of "??" for hostname and userhost expandos when these can't be reliably detected.
2015-08-29In expando_hostname, set *free_ret to TRUEkyak
*free_ret must be set to TRUE in both cases, since we return some newly initialised memory
2015-08-26Clean up in hostname expando before returnkyak
Clean up the vector resulting from g_strsplit before returning from expando_hostname(). Also, use g_strdup() instead of g_strconcat() to return the pointer to hostname.
2015-08-24Merge pull request #222 from LemonBoy/cap-supportAlexander Færøy
[RFC] CAP support
2015-08-20Send the CAP LS after sending the proxy stringsLemonBoy
Patch by @dequis
2015-07-25Replace \n with \r\n in irssiproxy source, fixes bugblha303
2015-07-19Add expandos for hostnamekyak
See http://bugs.irssi.org/index.php?do=details&task_id=829
2015-06-14Fix 'address already in use' when changing irssiproxy_portsdequis
When changing the value of irssiproxy_ports to use a different network name in a port that was already bound (so like changing from asd=6667 to sdf=6667) it would throw "address already in use". This fixes it by delaying the add_listen() calls after all the remove_listen() were called.
2015-06-14Rename /proxy command to /irssiproxy for claritydequis
2015-06-14Merge branch 'master' into irssiproxydequis
Conflicts: src/irc/proxy/listen.c
2015-06-12Add server check in irc_server_connect (#208)Geert Hauwaerts
Fail instead of crash, if irc_server_connect is called without object. (#208)
2015-05-31Improve ischannel_func (#253)LemonBoy
The function now skips all the leading characters that are in the STATUSMSG. If the server didn't send the STATUSMSG option then it's assumed to be "@+" for compatibility with bahamut 2.4 (sic).
2015-05-15Implement CHANTYPES supportLemonBoy
2015-05-05Implement support for IRCv3.1 CAP negotiationLemonBoy
2015-04-17Merge pull request #199 from ailin-nemui/config-parserAlexander Færøy
Make config parser more robust
2015-04-07Change all strcmp() to g_strcmp0() to handle nulls gracefullydequis
Just a string replacement (but i did check every one of them) sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2015-02-24Add help files for proxy moduleHans Nielsen
2015-02-24Fix whitespaceHans Nielsen
2015-02-24Add boolean toggle for irssiproxy being enabledHans Nielsen
2015-02-24Make proxy messages include more detail and add status commandHans Nielsen
2015-02-24Change around connection signals in proxy moduleHans Nielsen
Change "proxy client connected" to "proxy client connecting" to avoid being confused by clients that have connected but not necessarily authenticated. Emit "proxy client connected" once authenticated, keeping the name for backwards compatibility.
2015-02-17add CONFIG_REC to config_node_section* APIsAilin Nemui
this adds the CONFIG_REC * to the config_node_section and config_node_section_index APIs as they will require access to the config cache later on to make the config parser more robust.
2015-02-08accept freenode extbans in /ban [#150]mauke
2015-01-05Merge pull request #152 from sebth/masterAlexander Færøy
Try to split long lines on spaces
2014-11-08typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos
2014-10-19Try to split long lines on spacesSebastian Thorarensen
Try to split long lines on spaces to avoid words being splitted. This can be turned off with the option `split_line_on_space'. The code assumes that the terminal encoding has ASCII spaces.
2014-10-01Merge pull request #140 from sebth/masterAlexander Færøy
Make line splitting fail-safe
2014-10-01Merge pull request #142 from dequis/away-with-no-reasonAlexander Færøy
irc_server_send_away: don't send empty param if there's no away reason
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-05Syntax rewrite of U-Z commandsGeert Hauwaerts
Rewrote the syntax documentation of U-Z commands.
2014-07-30Removed the obsolete SQUERY and SERVLIST commandsGeert Hauwaerts
Removed the obsolete SQUERY and SERVLIST commands.
2014-07-14Removed the obsolete RPING commandGeert Hauwaerts
The RPING command is obsolete.
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-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-06-29Merge pull request #62 from dgl/prefix-nick-flagsAlexander Færøy
Use PREFIX from 005 to decide if a nick flag is of op level
2014-06-27Use PREFIX from 005 to decide if a nick flag is of op levelDavid Leadbeater
Fixes #61.
2014-06-27s/INCLUDES/AM_CPPFLAGS/gDave Reisner
Silences warnings on recent automake such as: src/core/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
2014-06-27Merge pull request #44 from dajohi/g_basenameAlexander Færøy
Replace deprecated g_basename with g_path_get_basename.
2014-06-26Add missing includeDavid Leadbeater
Silences: listen.c:320:3: warning: implicit declaration of function ‘ascii_strup’ [-Wimplicit-function-declaration]