summaryrefslogtreecommitdiff
path: root/src/irc
AgeCommit message (Collapse)Author
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]
2014-06-26Remove unused variables to silence compiler warningsDavid Leadbeater
2014-06-22Replace deprecated g_basename with g_path_get_basename.David Hill
2014-06-21Merge pull request #50 from dajohi/cmd_null_derefAlexander Færøy
Avoid potential null dereferences.
2014-06-20Do not break strict-aliasing rules.David Hill
dcc-send.c:296:2: warning: dereferencing type-punned pointer will break strict-aliasing rules
2014-06-20Avoid potential null dereferences.David Hill
2014-06-16Revert "add d,q,f and J to CHANMODES default, to work a bit better with ↵David Leadbeater
dancer and possibly others" This is no longer relevant and most ircds now send a correct isupport message. This reverts commit b832f1f7b2c4a692786d5d52904a2bdf4d14354f.
2014-06-10Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.David Hill
2011-11-21Fix warning.Alexander Færøy
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5210 dbcabf3a-b0e7-0310-adc4-f8d773084564
2011-05-15Accept names replies with nick!user@host instead of nickJilles Tjoelker
if they are somehow enabled (UHNAMES/userhost-in-names). bug #805 git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5205 dbcabf3a-b0e7-0310-adc4-f8d773084564
2011-02-10Ensure that expando_cumode_space() doesn't free unallocated memory when noJase Thew
prefix exists by conditionally allocating and marking to-be-freed the cumode string inside of expando_cumode(). (Bug #669) git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5203 dbcabf3a-b0e7-0310-adc4-f8d773084564
2010-07-24Add prefixes to irc_nicklist_insert() so that nickrec.prefixes is accurate ↵Wouter Coekaerts
in the "nicklist new" signal. Fixes the nicklist sorting on xirssi. Patch by nenolod. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5184 dbcabf3a-b0e7-0310-adc4-f8d773084564
2010-04-04Remove warnings about uninitialized variables.Alexander Færøy
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5140 dbcabf3a-b0e7-0310-adc4-f8d773084564
2010-04-03deprecated glib strup/down fixes from exg.Alexander Færøy
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5138 dbcabf3a-b0e7-0310-adc4-f8d773084564
2010-02-27Use servertag from the active DCC chat when not connected anymore to the IRC ↵Wouter Coekaerts
server that started it. This fixes a crash with handling the DCC queue. Reported by Aurelien Delaitre (SATE 2009) git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5122 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-05-13Accept 354 (WHOX reply) as a /who reply too (for redirection).Jilles Tjoelker
Ignore the parameters for matching because 354 does not have a fixed format. This helps irssi-proxy with clients that use WHOX, such as xchat (away checking). WHOX works on ircu and charybdis 3.1 servers. Bug #671 git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5064 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-04-05Remove leftover.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5059 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-03-15Correct previous commit: fix away checkingWouter Coekaerts
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5040 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-03-10Fix /NOTIFY list when nick is seen joining (bug #642)Wouter Coekaerts
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5039 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-03-10Include hostmask in 001 event sent by proxy (bug #650)Wouter Coekaerts
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5038 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-03-01Remove unused variables.Jilles Tjoelker
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5032 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28Ensure variable is initialized.Jilles Tjoelker
Make sure not to set connection_lost if the server was already disconnected. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5030 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28Add the command send/expire timeout only when needed.Jilles Tjoelker
This was the last always-on <1s timer. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5026 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28Check for stale flood entries when lines come in, avoiding a 0.5 second timeout.Jilles Tjoelker
The timeout is now every 5 seconds and serves to remove entries that do not send messages anymore. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5024 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21Make explicit how long the arrays for prefix_add and prefix_del are.Jilles Tjoelker
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5020 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-08Code Cleanup:Alexander Færøy
Use g_string_printf() instead of g_string_sprintf() (which is considered deprecated.) git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-08Code Cleanup:Alexander Færøy
Use g_string_append_printf() instead of g_string_sprintfa() (which is considered deprecated.) git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5003 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-22Check server's connected flag rather than net-sendbuffer pointers inEmanuele Giaquinta
sig_server_quit. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4972 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-13Preserve op/halfop/voice when /upgrading from before the prefixes changeJilles Tjoelker
(r4922). This also restores them when /upgrading from a revision between r4922 and this one. Note that other prefixes are still lost when /upgrading from pre-r4922 irssi. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4968 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-12prefix_add(): copy correct number of bytesJilles Tjoelker
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4967 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-02Recode outgoing irc quit messages.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4940 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-01Factor the code to send an irc action into a function.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4937 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-29Revert r4924, the comment is correct after all.Jilles Tjoelker
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4930 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-29Remove obsolete part of comment.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4929 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-28Allow /ban, /unban, /kickban, /knockout if channel is not synced.Jilles Tjoelker
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