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

327 Commits

Author SHA1 Message Date
Timo Sirainen
06c431bcd7 Don't autojoin channels that have already been joined in some other server
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-21 11:08:49 +00:00
Timo Sirainen
e5c9dc37dc Check time changes every half a second instead of every second.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1874 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 11:06:58 +00:00
Timo Sirainen
e5abcdb76c fix a fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1869 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 22:02:55 +00:00
Timo Sirainen
097206878d When assiging chatnet to server connect record, always try to get the name
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 21:39:01 +00:00
Timo Sirainen
476b5ec863 $~ crashed if arglist was empty
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1858 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 11:30:24 +00:00
Timo Sirainen
16247b8c34 fixed a small memleak when unloading module
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1843 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-15 18:37:13 +00:00
Timo Sirainen
53d5c92cf4 Fixed some memory leaks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1837 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 14:14:54 +00:00
Timo Sirainen
42f5b80f2a "extern const char *default_config;" - some other parts of irssi might want
to use the default config also.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1819 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13 15:17:54 +00:00
Timo Sirainen
c988af4150 Added MODULE_DATA_UNSET() macro and started using it. Just to make sure we
don't try to access free'd data.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1818 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-02 07:55:51 +00:00
Timo Sirainen
26d84e25ab added expando_get_signals() and special_vars_get_signals() to return list
of signals the expandos use. Also added "time changed" signal which gets
emitted when $Z changes.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1814 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-23 17:32:05 +00:00
Timo Sirainen
82ce76100c s/PARAM_FLAGS_ONLY_PARAMS/PARAM_FLAG_ONLY_ARGS/ since they're called
arguments everywhere :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1804 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 16:44:22 +00:00
Timo Sirainen
1b42f89ccb $*, $~ and $-n should still work with PARAM_FLAG_ONLY_PARAMS.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1803 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 16:43:24 +00:00
Timo Sirainen
7814192f03 special vars: added PARSE_FLAG_ONLY_PARAMS. Theme loading now uses it so
you can use $C etc. in themes to print the active channel. printformat()
also expands it now correctly to the server/target where the message was
printed, not to the active window's server/target.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1802 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 15:58:14 +00:00
Timo Sirainen
eb9f1eb985 autolog: target name is now always lowercased with irc protocol.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1789 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 17:47:31 +00:00
Timo Sirainen
c7f7ec4391 /LOAD fixes for modules with no core part, and /LOAD ~/...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1788 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 17:38:47 +00:00
Timo Sirainen
460281eb8a /SET override_coredump_limit - sets core file size to unlimited if set ON
(default).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1783 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-10 19:50:53 +00:00
Timo Sirainen
477e1615af Loading modules that didn't have "core" part didn't work (eg. irc_proxy).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1778 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-08 18:02:49 +00:00
Timo Sirainen
099c83a98e Expando lookup crashed with hi-ascii chars.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1774 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-31 16:47:14 +00:00
Timo Sirainen
2d37f461ac Module loading fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1762 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-17 13:52:14 +00:00
Timo Sirainen
0d5e569195 Some internal changes how /SERVER command works. Added /SERVER PURGE
[<target>] command. The channel output is purged at /PART if the output
queue is larger than 10.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1759 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 13:19:06 +00:00
Timo Sirainen
803d805016 Module loading updates - /LOAD shows now also the statically loaded modules.
You can't /LOAD the same module twice. Syntax changed to /LOAD <module>
[<submodule>], /UNLOAD <module> [<submodule>].

NOTE: all modules now need to call register_module() in their init()
function.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1748 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:41:59 +00:00
Timo Sirainen
f584c1013c minor speedups and signal removing fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1747 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:03:02 +00:00
Timo Sirainen
4e3b1bba62 /LOG OPEN -color, /SET awaylog_colors - specifies that the color codes
should be written to log file.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1742 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-13 13:51:49 +00:00
Timo Sirainen
98b82723a1 Added function expand_escapes() which handles now escaping /EVAL and input
line if /SET expand_escapes is set. Supported escapes are \t, \r, \n, \e
(ESC), \x (HEX, \x1b), \c (CTRL char, \cA), \000 (octal, \033)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1727 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 20:00:25 +00:00
Timo Sirainen
072a4c774f If we receive INVITE for a channel that is added with /CHANNEL ADD -auto,
join it immediately.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1724 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 17:47:54 +00:00
Timo Sirainen
6a422552d5 /MSG * in empty window now prints "not joined" error
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1707 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-05 06:45:29 +00:00
Timo Sirainen
0163f2771f Signals weren't removed correctly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1683 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29 12:56:37 +00:00
Timo Sirainen
802ee7564c Fixed /RELOAD crashing without parameters.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1664 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29 00:27:23 +00:00
Timo Sirainen
3fb7a4115d added destroy() function to WI_ITEM_REC. This fixes a potential crash when
"window item destroy" signal was being used.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1655 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-26 01:49:08 +00:00
Timo Sirainen
5eca2d861f fixed using already free'd memory.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1648 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-25 19:29:50 +00:00
Timo Sirainen
fbe38dd2c8 command_runsub() - ignore multiple spaces between /COMMAND SUBCOMMAND
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1640 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-16 20:23:59 +00:00
Timo Sirainen
40c7fa1190 --home, --config parameters now expand relative paths to absolute at startup.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1635 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-16 16:56:52 +00:00
Timo Sirainen
c1ac5765b3 New /IGNOREs weren't immediately effective for nicks in channel. Some small
fixes for unignoring levels with /IGNORE.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1630 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 14:50:26 +00:00
Timo Sirainen
316bd7d142 Moved awaylog to core.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1629 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 14:07:48 +00:00
Timo Sirainen
de5348a084 Another /FOREACH update - it only goes through the current
servers/channels/queries, if the command creates new ones it skips them (ie.
/FOREACH CHANNEL /CYCLE works now).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1628 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 13:49:57 +00:00
Timo Sirainen
79d1d7089a Added --home and --config command line parameters to irssi to specify
locations for ~/.irssi and ~/.irssi/config


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1626 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 00:39:48 +00:00
Timo Sirainen
bcbb55dd1e /FOREACH won't crash now if the command removes the item being accessed
(ie. /foreach server disconnect should work)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1625 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-14 23:24:05 +00:00
Timo Sirainen
cb763a0b52 "gui dialog" signals can now be safely emitted before the GUI is initialized
- the texts are queued until the GUI initialization is done and re-emitted.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1618 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-14 19:10:17 +00:00
Timo Sirainen
b365a78a5a uname() returns non-negative if successful, not necessarily 0.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1613 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-13 19:17:43 +00:00
Timo Sirainen
2ddba459c0 Moved location of config, theme and doc files. Added debian dir for building a .deb easily.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1607 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-05 23:16:18 +00:00
Timo Sirainen
53975363ce Using different ports in one server for different chat networks didn't work
properly.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1580 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-27 21:47:31 +00:00
Timo Sirainen
d0de9fe229 "log rotate" -> "log rotated"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1565 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 16:47:56 +00:00
Timo Sirainen
8b733e0568 special-vars: added flag PARSE_FLAG_ESCAPE_THEME to escape { and } chars
with % char. Used this with statusbar items - now for example "{error xxx}"
topic won't print it with error color.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1564 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 15:33:07 +00:00
Timo Sirainen
b642a0e16f moved "log rotate" after the logging was stopped.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1561 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 13:55:50 +00:00
Timo Sirainen
4ad8ebba7e "log rotate" signal added
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1560 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 13:49:51 +00:00
Timo Sirainen
4c51bc9755 get_max_column_count() didn't work properly if items had wider items than
max_width.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1551 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-11 15:05:08 +00:00
Timo Sirainen
b0f75f79a2 Getting optional channel parameter was buggy - it used already free'd memory
and assumed the command handler was given CHANNEL_REC even while it could
have been any other WI_ITEM_REC ..though it used only the WI_ITEM_REC parts
so it didn't really matter..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1544 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-10 22:19:15 +00:00
Timo Sirainen
7773aabb2c Try to keep the number after server tag always the same when there's
multiple connections to the same server.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1540 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-08 21:19:08 +00:00
Timo Sirainen
f079263035 /LOAD: when using '.' character in module name irssi printed glib error
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1537 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-04 18:40:50 +00:00
Timo Sirainen
6f5c1117de moved /SET ignore_signals to core.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1534 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 20:21:07 +00:00