1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00
Commit Graph

390 Commits

Author SHA1 Message Date
Timo Sirainen
1aed7cb956 IRSSI_VERSION_DATE is now a number, so you can do #iffing with it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2252 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-15 19:28:44 +00:00
Timo Sirainen
26d9da61c8 net_listen(): when socket() failed because we tried to use IPv6, we should
have falled back to IPv4, but wrong errno was checked.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2248 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 22:19:54 +00:00
Timo Sirainen
6774b4b30f Added reference counting to server record. At least now we don't accidentally
use a destroyed server record when some /command disconnects the server
(shouldn't happen really) or when irc_send_cmd() fails sending data to server
and disconnects the server (I don't know if this ever happens, but if it does,
it very well could have caused crashes)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2243 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 01:54:12 +00:00
Timo Sirainen
15e815e8d3 Better support for halfops, patch by yathen@web.de
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2228 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-09 17:13:48 +00:00
Timo Sirainen
e8696c711e Regexp-ignores weren't compiled at startup - thanks to Manoj Kasichainula
for noticing this, I never tried restarting when trying to reproduce the
regexp problems :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2226 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-09 16:06:52 +00:00
Timo Sirainen
5dfe5f8a5d $!xx! history search didn't work because history_func() got also the
trailing '!' character.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2213 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 19:45:47 +00:00
Timo Sirainen
4c6237256f /IRCNET ADD -usermode option added.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2206 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 23:29:48 +00:00
Timo Sirainen
6be1390303 /UPGRADE broke reconnections to server.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2204 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 23:05:54 +00:00
Timo Sirainen
5524f89d71 /UPGRADE shouldn't begin server reconnections in old client.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2176 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01 20:23:48 +00:00
Timo Sirainen
4ebe07e0d1 command_unbind() - don't crash if trying to unbind a command not registered
in given module.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2166 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-29 22:05:24 +00:00
Timo Sirainen
c3429fa50e /UPGRADE: when trying to restore connection to server of which chat
protocol is unknown, close the specified handle.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2148 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 17:03:00 +00:00
Timo Sirainen
ed4d24b282 /UPGRADE: Irssi no longer asks for /NAMES list from server when
rejoining channels, but the nick list is transferred in session file.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2144 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 16:13:12 +00:00
Timo Sirainen
5347d24e61 Doing /RECONNECT while server was still being connected to, irssi
didn't disconnect the server so you ended up having two connections.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2139 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 15:05:38 +00:00
Timo Sirainen
24015a360a /FOREACH QUERY did actually same as /FOREACH CHANNEL :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2136 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-21 17:50:58 +00:00
Timo Sirainen
cd09cd6332 Still forgot to add pidwait_get_pids() here.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2133 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 20:54:21 +00:00
Timo Sirainen
d4d2fe5e80 added function pidwait_get_pids() which session.c uses - forgot to commit
last time :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2132 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 20:48:43 +00:00
Timo Sirainen
94be91c30e --session broke --help output
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2130 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 20:36:12 +00:00
Timo Sirainen
b24629822e /UPGRADE: waited pids are now transferred to new client so we don't leave
zombie processes.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2129 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 20:29:45 +00:00
Timo Sirainen
c355002886 using signal_add() instead of signal_add_first() again. the ..first() wasn't
really needed and it broke autoaway.pl script .. which is because
/DISCONNECT and /UPGRADE commands destroy the server record, but it's still
left in the signal's parameter. Guess I'll need to add reference counting to
server record as well..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2128 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 12:51:28 +00:00
Timo Sirainen
72d943acdb /UPGRADE: --home and --config parameters weren't passed to new irssi.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2122 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 03:19:02 +00:00
Timo Sirainen
9cf8d32198 Typobugfix.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2120 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 02:48:53 +00:00
Timo Sirainen
e0841d15a2 /UPGRADE now saves the session, disconnects the servers so that the socket
isn't closed but irssi thinks its disconnected, then it quits irssi, and as
the last command executes the new irssi. This way we get clean
deinitialization so irssi can close log files, destroy scripts, etc.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2114 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 01:47:29 +00:00
Timo Sirainen
bb3592f5c7 /UPGRADE: server command queue is now flushed to make sure everything
gets sent to server. Channels are now stored in in config blocks
instead of just in one string, this way we can restore the topic and
key. Away status in server is also restored.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2113 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 01:29:23 +00:00
Timo Sirainen
333f6a3bab Added net_sendbuffer_flush() for flushing the buffer.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2112 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 00:54:51 +00:00
Timo Sirainen
44565932e3 Don't break if /CHANNEL ADD -bots list has bots separated with more than
one space.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2109 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 23:12:00 +00:00
Timo Sirainen
baf8ac392c grab the "send command" event with signal_add_first().
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2108 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 23:09:29 +00:00
Timo Sirainen
879702897b eval_special_string() : spaces are now ignored after ';' separator (so
/alias echo foo; echo bar works properly). Also if there was any empty
commands they're now ignored.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2105 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 22:44:04 +00:00
Timo Sirainen
60dbc68bdf Removed memdebug stuff.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2097 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 20:41:30 +00:00
Timo Sirainen
0ffcbdc9b4 Removed memory debugging code. It's a lot easier to check for buffer
overflows with electric fence and memory leaks with memprof.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2095 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 20:30:19 +00:00
Timo Sirainen
55137fa30d get_argument() - allow arglist to be NULL, just assume that there's no
arguments then.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2083 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 14:17:16 +00:00
Timo Sirainen
01404a3713 /CONNECT -! doesn't autojoin to channels.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2082 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 14:02:27 +00:00
Timo Sirainen
4978d4cd14 Irssi printed GLib error if no PATH was set..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2081 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:55:28 +00:00
Timo Sirainen
78f9c141dc /UPGRADE didn't work properly when you were connected to multiple servers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:52:10 +00:00
Timo Sirainen
5656ad352d session_set_binary() - we can't get the full path to irssi binary from
argv[0] and we need it, so its searched now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2079 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:33:28 +00:00
Timo Sirainen
ee708c1469 -botcmd isn't now sent to channels when /UPGRADEing.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2078 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:14:37 +00:00
Timo Sirainen
bd2af6cb98 Added syntax comment for /UPGRADE
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2072 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 02:00:18 +00:00
Timo Sirainen
a1b151d8d3 A few more updates.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2071 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 01:54:02 +00:00
Timo Sirainen
bbbb36cf19 /UPGRADE - upgrade-on-the-fly feature. Currently only moves the active
server connections to the new irssi process, but that should be enough to
never quit from IRC again :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2070 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 01:48:58 +00:00
Timo Sirainen
e3fea8cf01 "setup reread" signal now sends the config file as parameter. Added
Irssi::get_irssi_dir() and Irssi::get_irssi_config(). Patch by peder@linpro.no


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2029 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 11:50:14 +00:00
Timo Sirainen
c6302cd6e7 Lag checking fixes - should work fine again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2016 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 13:47:51 +00:00
Timo Sirainen
c17439820d Don't crash when connecting to server with unknown chat protocol (eg.
specified in config file but module not loaded yet).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2013 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 00:21:24 +00:00
Timo Sirainen
636b7ab3ac typofix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 16:31:09 +00:00
Timo Sirainen
a9a380fd54 settings_save() now sends "setup saved" signal - patch by peder@ifi.uio.no
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2003 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 16:28:56 +00:00
Timo Sirainen
1673246497 %X should generate "time changed" every second too.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1998 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 22:03:07 +00:00
Timo Sirainen
381f410058 extra check to make sure the "timer changed" signal is sent at startup.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1993 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 14:17:23 +00:00
Timo Sirainen
24d51a694b /RAWLOG commands should work immediately after connection to server was
accepted (ie. don't wait for 001 event from server).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1982 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 20:05:10 +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
Timo Sirainen
712f3b383d net_listen(): if creating IPv6 socket fails because of EPROTONOSUPPORT, try
without IPv6.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1979 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-10 20:15:24 +00:00
Timo Sirainen
9abd857618 net_connect(): if bind() fails, set the address back to INADDR_ANY to make sure it doesn't leave the socket in buggy state.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1978 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-07 14:35:00 +00:00
Timo Sirainen
6a82e806b4 Moved $(GLIB_CFLAGS) after -I includes, to make sure our own .h files get before possibly identically named headers in the glib's include directory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1975 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-05 14:48:03 +00:00