1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-07 02:54:19 -04:00
Commit Graph

25 Commits

Author SHA1 Message Date
Timo Sirainen
06a33691f4 make sure redirect_continue is set to NULL if it contains the redirection
that is being destroyed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2385 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 22:28:09 +00:00
Timo Sirainen
747d0f19ca Fixed a few minor memleaks. Don't use g_strdup() in lib-popt because it may
be freed with a real free() call instead of g_free().


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2352 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-28 15:20:57 +00:00
Timo Sirainen
f4897860b5 toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in some
systems, use our own is_...() functions now instead.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27 20:45:59 +00:00
Timo Sirainen
496db0eefc Redirections were broken if server_redirect_event() didn't list the stop
event.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2246 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 16:11:13 +00:00
Timo Sirainen
ec79871a7a server_redirect_peek_signal() now contains int *redirected parameter which
indicates if event belongs to redirection even while it didn't have any
redirection signal. Proxy uses this to figure out if the event should be
sent to clients or not (/WHOIS in proxy sent 3 middle lines to all clients
before this).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2221 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 23:41:45 +00:00
Timo Sirainen
9a44941ca4 "redirect first" and "redirect last" events can be used with
server_redirect_event() to get a signal emitted when redirection begins /
ends.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2215 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 21:41:46 +00:00
Timo Sirainen
be8778052e On nick collision kills, reconnect back immediately. On any other type of
kills, stop reconnecting to the server entirely.

When reconnecting to server and setting back the old user mode, only use the
modes that we actually wanted to change with /MODE commands, don't try to
set back modes given to us by server (eg. +r).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2205 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 23:10:41 +00:00
Timo Sirainen
aeae7935ec MAX_FAILURE_COUNT was used off-by-one (ie. 1 meant actually 0..)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2190 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 23:46:12 +00:00
Timo Sirainen
85d0060426 Don't fail the remote redirections either until MAX_FAILURE_COUNT
redirections have gone without reply to our redirection. This is because
the timeout itself may fail if lag to the server is too high.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2177 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01 20:36:44 +00:00
Timo Sirainen
348461aa08 Only use registered start events to begin a server redirection - not those
that are just given in server_redirect() (fixes a small problem of /MSG nick
who is away + /WHOIS nick, then receiving the first away reply from server
to /MSG command irssi thinks it's a reply to /WHOIS)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2175 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01 20:17:57 +00:00
Timo Sirainen
53bdd8f602 Irssi didn't properly abort a redirection of which end event it missed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2152 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 20:55:45 +00:00
Timo Sirainen
034e75ee19 Stop the redirection if we receive unknown event and it's not numeric.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2052 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 15:07:03 +00:00
Timo Sirainen
0abb62a471 When destroying data used from server in "server disconnected" signal, set
the data to NULL as well, the server record is still used after the signal
is finished (the channels it uses are destroyed, which may trigger scripts
etc.)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2046 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18 10:55:14 +00:00
Timo Sirainen
1c29219d1c Added support for "optional events" in redirection. They're checked right
after stop-signal is received. This fixes /WHOIS non_existing_nick in OPN,
and also hides the Channel created-event when joining to channel that's
received in several networks after /MODE #channel.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2037 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17 00:07:24 +00:00
Timo Sirainen
7545f463bd Allow replies to redirections come in a bit different order than expected -
default is if 3 replies to other redirections are received, abort the
expected one. This is because some IRC bouncers reply to some of the
commands (PING) themself immediately.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2036 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 23:42:09 +00:00
Timo Sirainen
ec0f2f4706 Added "your not chanop" failure to I-mode as well.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2032 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 14:49:17 +00:00
Timo Sirainen
0d919f7439 ISON and USERHOST redirections were registered wrong.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2030 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 14:18:26 +00:00
Timo Sirainen
0b4db7b17a print failed redirections to rawlog even if there's no failure signal.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2019 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 16:29:25 +00:00
Timo Sirainen
3101437f75 Report failed redirections in rawlog.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2008 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 23:23:00 +00:00
Timo Sirainen
c0bf62ba44 Redirect parameters should be matched case-insensitively
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2007 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 22:43:48 +00:00
Timo Sirainen
e66ec6cf8b Redirection fixes - added count parameter.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1999 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 22:15:04 +00:00
Timo Sirainen
65f92c5e9d added server_redirect_peek_signal() function.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1988 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 22:44:47 +00:00
Timo Sirainen
571f3acaf8 "mode e" was registered twice - the second one should have been "mode I".
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1984 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 20:27:46 +00:00
Timo Sirainen
5e1993346e Redirection fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1983 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 20:20:43 +00:00
Timo Sirainen
850cf993eb Moved rewritten server redirection code from core to irc. This new code
should be able to do the redirecting a lot more error-proof. Changed
lag-checking to use PINGs instead of NOTIFYs. This breaks scripts using
redirection. Hopefully this doesn't break too much things in irssi :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1980 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 18:59:19 +00:00