summaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2001-11-20/UPGRADE now saves the session, disconnects the servers so that the socketTimo Sirainen
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/UPGRADE: server command queue is now flushed to make sure everythingTimo Sirainen
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-20Added net_sendbuffer_flush() for flushing the buffer.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2112 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19Don't break if /CHANNEL ADD -bots list has bots separated with more thanTimo Sirainen
one space. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2109 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19grab the "send command" event with signal_add_first().Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2108 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19eval_special_string() : spaces are now ignored after ';' separator (soTimo Sirainen
/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-19Removed memdebug stuff.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2097 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19Removed memory debugging code. It's a lot easier to check for bufferTimo Sirainen
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-19get_argument() - allow arglist to be NULL, just assume that there's noTimo Sirainen
arguments then. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2083 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19/CONNECT -! doesn't autojoin to channels.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2082 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19Irssi printed GLib error if no PATH was set..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2081 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19/UPGRADE didn't work properly when you were connected to multiple servers.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19session_set_binary() - we can't get the full path to irssi binary fromTimo Sirainen
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-botcmd isn't now sent to channels when /UPGRADEing.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2078 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19Added syntax comment for /UPGRADETimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2072 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19A few more updates.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2071 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19/UPGRADE - upgrade-on-the-fly feature. Currently only moves the activeTimo Sirainen
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-16"setup reread" signal now sends the config file as parameter. AddedTimo Sirainen
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-15Lag checking fixes - should work fine again.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2016 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15Don't crash when connecting to server with unknown chat protocol (eg.Timo Sirainen
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-14typofixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14settings_save() now sends "setup saved" signal - patch by peder@ifi.uio.noTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2003 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12%X should generate "time changed" every second too.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1998 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12extra check to make sure the "timer changed" signal is sent at startup.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1993 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11/RAWLOG commands should work immediately after connection to server wasTimo Sirainen
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-11Moved rewritten server redirection code from core to irc. This new codeTimo Sirainen
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-10net_listen(): if creating IPv6 socket fails because of EPROTONOSUPPORT, tryTimo Sirainen
without IPv6. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1979 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-07net_connect(): if bind() fails, set the address back to INADDR_ANY to make ↵Timo Sirainen
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-05Moved $(GLIB_CFLAGS) after -I includes, to make sure our own .h files get ↵Timo Sirainen
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-03Commands that accepeted * parameter as active channel didn't work properly -Timo Sirainen
active channel was used but the * wasn't removed from parameters. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1961 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03/RECONNECT ALL crashed irssi (typofix - s/unref/ref/ :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1959 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-02Moved some stuff from irc to core. Added command_bind_proto() function toTimo Sirainen
bind protocol-specific commands. Added #define command_bind_irc() for easier access. CMD_IRC_SERVER(server) check should be done at the beginning of each command requiring IRC server as active server, it handles it correctly the cases when it is not. Did some other cleanups as well. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1955 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01server->ischannel(char *) -> server->ischannel(SERVER_REC *, char *). AddedTimo Sirainen
#define server_ischannel(server, data) and it's now used everywhere.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1954 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-31Crashfix when module didn't contain deinit() function.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1950 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-31changed default log directory mode to 0700 and file mode to 0600.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1949 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24Added a bit better error reporting.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1911 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-22When logs are rotated, automatically create the new directory where to openTimo Sirainen
the log if it has changed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1897 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-22Checking that autojoined channels weren't already joined in same chatnet hadTimo Sirainen
a typo so it checked all servers that the channel wasn't joined. s/servers/chatnet_servers/ git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1890 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21if \x isn't a known escape sequence, it should print just x, not \x.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1887 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21deinit() function is now checked and saved when loading module. UnloadingTimo Sirainen
modules that had module_deinit() function (not module_core_deinit()) wasn't called before. Also, error message wasn't printed if module didn't have the _core part and wasn't really irssi module. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1882 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21Added reference counter to SERVER_CONNECT_REC. Since it's being moved aroundTimo Sirainen
a lot in reconnects etc. this should make it easier to track when it's supposed to be destroyed. Hopefully fixes a crash I assume is related to this but couldn't find.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1880 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21added irssi_init_finished variable to core.h which is TRUE after "irssi initTimo Sirainen
finished" signal is sent. Perl scripts aren't now autoloaded until irssi_init_finished is TRUE (fixes the crash at startup). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1879 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21Don't autojoin channels that have already been joined in some other serverTimo Sirainen
connection in same chat network. This has mostly been just annoying, and this enables us to add eg. 20 channels autojoinable, then create 2 server connections and irssi will automatically join the first 10 in first connection and 10 other in the later (well, or at least if the 10 later channels get "not enough channels" message from server before the connection is finished, which well might not happen .. problem :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1875 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21Check time changes every half a second instead of every second.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1874 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20fix a fixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1869 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20When assiging chatnet to server connect record, always try to get the nameTimo Sirainen
from chatnets list so the case will be correct. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1868 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20$~ crashed if arglist was emptyTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1858 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-15fixed a small memleak when unloading moduleTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1843 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14Fixed some memory leaks.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1837 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13"extern const char *default_config;" - some other parts of irssi might wantTimo Sirainen
to use the default config also. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1819 dbcabf3a-b0e7-0310-adc4-f8d773084564