summaryrefslogtreecommitdiff
path: root/src/irc/core
AgeCommit message (Collapse)Author
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-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
2008-11-28Remove obsolete/wrong part of comment (irc server cmdcount).Jilles Tjoelker
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4924 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-28Allow storing multiple "other" prefixes such as +q and +a.Jilles Tjoelker
Original patch by JasonX, somewhat changed by exg and me. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4922 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-16Do not check in irc cmd_away that the active item server is an ircEmanuele Giaquinta
server, it prevents /away from working when the active item server is not an irc one. The check is already performed in irc_server_send_away, so /away -one is unchanged. Patch by Gabor Adam Toth. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4914 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-12Remove /wallchops, do not suggest other commands in /help wall.Jilles Tjoelker
The only major ircd supporting /wallchops also supports /notice @#channel. The /wall command has used /notice @#channel (if it is supported which is pretty much everywhere) for a while and so it can be used without problems on large channels. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4902 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-12Recode outgoing irc away messages, bug #412.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4901 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-12Export server_send_away and use it in irc-servers-reconnect.c:sig_connectedEmanuele Giaquinta
instead of duplicating the code. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4900 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-10recode.h include fixup.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4892 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-09Move recoding of outgoing messages into irc send_message routine. Handlers forEmanuele Giaquinta
message own_{private,public} now receive the message in the client encoding. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4890 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-08Recode a WALL message also when sending a notice to @#channel.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4887 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-08-30Fix display of ratbox-style operspy whois (/whois !nick).Jilles Tjoelker
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4874 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-08-02Revert recode changes r4483 and r4715.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4867 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-24Cosmetic.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4848 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-23Reindent.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4846 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-23Fix leaks.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4845 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-05-22Extend net_sendbuffer by adding a LINEBUF_REC member and a ↵Emanuele Giaquinta
net_sendbuffer_receive_line function to read linewise from the associated io channel. Rewrite irc/dcc/proxy read logic on top of it. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4841 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-11Remove workaround no longer needed.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4803 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-15Simplify recode target computation.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4773 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-14Replace missed strncasecmp calls with g_ascii_strncasecmp.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4767 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09Use g_ascii_str{,n}casecmp for case insensitive comparison withEmanuele Giaquinta
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4739 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09Use g_ascii_str{,n}casecmp for case insensitive comparison withEmanuele Giaquinta
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-07Remove unneeded includes.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4735 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-04Replace g_strdup+g_str{up,down} with g_ascii_str{up,down}.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4721 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-16Move output recoding in irc_send_cmd_full.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4715 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-05Remove unneeded includes.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4709 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-21Remove undocumented /RAWQUOTE command.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4676 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-01-21Remove .cvsignore files.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4672 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-12-23Apply -usermode before -autosendcmd.Jilles Tjoelker
The -usermode is now implicitly treated as a requested usermode change; the MODE command setting it is not redirected. This is good because user MODE may or may not give a reply and this could be confused with the MODE message indicating the initial usermode. Possible issue here: '-' modes in -usermode persist only until you change your umode via /mode. Bug #548 git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4668 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-11-17Do not allow /ping by itself to ctcp ping a channel.Jilles Tjoelker
This is like the new /ver behaviour. Bug #542, patch by Geert with tweaks by exg git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4640 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-11-14Rework redirections to deal with multiple concurrent redirects better.Jilles Tjoelker
These mostly happen when doing remote whois and the target server is slow. The code uses the source server but will try to do what it can if servers think they need to mask it. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4638 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-10-18Recognize 431/461 (not enough parameters) as end of whois reply.Jilles Tjoelker
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4626 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-10-16Also copy oper status when an already known user joins another channel.Jilles Tjoelker
(Realname and away status were already copied.) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4623 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-10-16Update oper status from userhost reply.Jilles Tjoelker
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4622 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-10-12Get -kicks and -msgs from TARGMAX and MAXTARGETS 005 tokens.Jilles Tjoelker
We do not do this for WHOIS because the resulting replies tend to be buggy and inconsistent. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4617 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-08-07Use autoconf PACKAGE_TARNAME/PACKAGE_VERSION macros rather than automakeEmanuele Giaquinta
PACKAGE/VERSION ones. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4597 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-07-06Move the check for 4xx numeric for join failures last, soJilles Tjoelker
that the CHANNEL_REC is still around when handlers for specific numerics are executed. This allows removing the ugly special case for 437; I will also use this for 470 (channel forwarding). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4572 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-29If 001 has not been received yet, also treat "Banned" orJilles Tjoelker
"Bad user info" (case insensitive) in an ERROR message as an indication of a server ban. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4571 dbcabf3a-b0e7-0310-adc4-f8d773084564