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

1696 Commits

Author SHA1 Message Date
Timo Sirainen
d4d72e5583 Don't clear the window before redrawing, it's faster to do it at the same
time window is being redrawn.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1965 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 14:50:43 +00:00
Timo Sirainen
25b04419d4 Reset the color before clearing screen. Set the cursor invisible when moving
around in screen and set it visible again when it's in wanted position.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1964 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 14:42:28 +00:00
Timo Sirainen
67a9ad0598 /OP, /DEOP, /VOICE and /DEVOICE fixed not to print glib error if used in
non-channel window.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1963 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 13:31:33 +00:00
Timo Sirainen
655e111007 update_cmd_color() updated colors wrong.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1962 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 13:28:06 +00:00
Timo Sirainen
6e24ac82ed Commands that accepeted * parameter as active channel didn't work properly -
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 13:16:36 +00:00
Timo Sirainen
ab99ca7231 Quit if terminal gets lost.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1960 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 13:12:15 +00:00
Timo Sirainen
06435bea22 /RECONNECT ALL crashed irssi (typofix - s/unref/ref/ :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1959 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 12:58:36 +00:00
Timo Sirainen
8f65188776 Some fixes to drawing lines & handling long lines.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1958 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 12:54:29 +00:00
Timo Sirainen
585527b979 compile fix - patch by manoj@io.com
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1956 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-02 14:53:39 +00:00
Timo Sirainen
f354fe54c7 Moved some stuff from irc to core. Added command_bind_proto() function to
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-02 01:05:14 +00:00
Timo Sirainen
95b94ed83c server->ischannel(char *) -> server->ischannel(SERVER_REC *, char *). Added
#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-11-01 22:52:23 +00:00
Timo Sirainen
9833844f38 Buffer overflow fix (read-only, might have caused some crashes).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1953 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 22:30:45 +00:00
Timo Sirainen
f6fea30ff5 Check that it's IRC-channel we're destroying before doing any IRC-specific
deinitialization.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1952 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 21:04:26 +00:00
Timo Sirainen
083bdc74be indent_always setting was wrongly set when configuration was changed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1951 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 17:55:49 +00:00
Timo Sirainen
00f94a93a5 Crashfix when module didn't contain deinit() function.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1950 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-31 23:30:34 +00:00
Timo Sirainen
ee93268315 changed default log directory mode to 0700 and file mode to 0600.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1949 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-31 15:18:18 +00:00
Timo Sirainen
6bc16fc0ed added $cumode_space expando. Like $cumode, but gives " " if there's no mode.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1947 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-30 12:12:25 +00:00
Timo Sirainen
8b6d6b086e typofix :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1946 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 21:46:46 +00:00
Timo Sirainen
7b7b235ce8 forgot to define TI_rep for repeat() command.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1944 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 20:44:45 +00:00
Timo Sirainen
6d1d0208fe bug in last commit :) background color was broken
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1943 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 19:17:54 +00:00
Timo Sirainen
3d50a058b9 when colors aren't used, don't save last_fg and last_bg. This helps at least clrtoeol().
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1942 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 19:16:14 +00:00
Timo Sirainen
3cdedf5b4b terminfo's term_clrtoeol() uses the clrtoeol() command only when using the default colors. otherwise it just goes and fills the line with spaces.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1941 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 19:13:52 +00:00
Timo Sirainen
2500457729 Windows weren't created with correct size. When setting statusbar lines for
windows, irssi didn't resize the window properly.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1940 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 18:42:42 +00:00
Timo Sirainen
4f58b17ecb /WINDOW SERVER -unsticky crashed irssi if it was used when you weren't connected to server.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1939 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 16:15:47 +00:00
Timo Sirainen
59e310c723 stuff in LIBS moved to PROG_LIBS again. Otherwise linking perl module (and maybe some other stuff as well) tries to link all that with the module.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1938 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 13:43:46 +00:00
Timo Sirainen
6729317cac not needed anymore, code is in term*.[ch] now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1937 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-29 13:04:15 +00:00
Timo Sirainen
92ec922637 clrtoeol() wasn't called always when drawing buffer, so some garbage could
have been left to screen.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1936 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 23:52:36 +00:00
Timo Sirainen
801e593718 term_getch() -> term_gets() which can be used to read multiple keypresses at
once. Also fixes keyboard not working with netbsd.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1935 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 23:47:47 +00:00
Timo Sirainen
856e1de779 added a "const" to cvtchar() to get rid of compiler warnings
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1933 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 23:08:40 +00:00
Timo Sirainen
0229a2bd84 Change that should have been committed already
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1931 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 22:06:07 +00:00
Timo Sirainen
20e1de5ae1 terminfo_resize() updated - new terminal width can't be taken by reading it
from capabilities. Have to figure out something else (setupterm()?)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1930 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 21:49:35 +00:00
Timo Sirainen
858ed4b1ef Some resize fixes. With terminfo + /SET indent_always OFF, doubleclicking
long words (URLs mostly) that get split into two lines, selects the word
fully.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1929 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 21:17:34 +00:00
Timo Sirainen
3826079dba Use TCSADRAIN option when changing terminfo settings.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1928 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 19:20:59 +00:00
Timo Sirainen
83324a0ed5 color forcing stuff left from previous commit
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1927 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 18:51:00 +00:00
Timo Sirainen
fb439b5c2a Redrawing fixes - irssi should now rarely redraw stuff uselessly in screen.
Most of the code now just marks the window/statusbar/etc. as dirty, and lets
the dirty-checker handle it later.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1926 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 18:40:12 +00:00
Timo Sirainen
44b12481d6 Fixes for the updated configure.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1925 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 18:30:17 +00:00
Timo Sirainen
2ba339a26b Added support for using terminfo/termcap instead of curses. By default,
configure chooses to use ncurses if found, of terminfo if only curses was
found. --with-terminfo parameter can be used to specify if you want it or
not.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1924 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-28 11:30:26 +00:00
Timo Sirainen
8567481fd0 When scrolling window with eg. scroll_page_count /2, irssi didn't
remove window's statusbars lines when calculating number of lines to
scroll.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1923 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-27 11:47:59 +00:00
Timo Sirainen
67cee57fb9 Irssi crashed if script died in statusbar handler.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1922 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 19:45:29 +00:00
Timo Sirainen
d9b6bb152a Added flags option for Irssi::UI::Theme::format_expand().
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1921 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 18:17:21 +00:00
Timo Sirainen
39b66ab883 forward_word and backward_word now move only to next/prev non-alphanumeric character. added forward_to_space and backward_to_space. transpose_characters moves the cursor to right. patch by peder@linpro.no.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1920 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 14:39:36 +00:00
Timo Sirainen
d4178292e5 Renamed /FORMAT whois_oper_type to whois_oper which is now removed.
whois_oper wasn't really used anywhere AFAIK.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1919 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 12:02:10 +00:00
Timo Sirainen
be48bdc22c Added Irssi::current_theme() and Irssi::Theme::format_expand()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1918 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 11:21:18 +00:00
Timo Sirainen
c5c2242ee3 Boot dynaloader too even if perl libraries are compiled statically in irssi.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1917 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25 10:00:33 +00:00
Timo Sirainen
a2289ab8ae typofix - s/per/perl/
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1916 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 23:36:06 +00:00
Timo Sirainen
feff2b1adc bugfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1915 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 23:29:48 +00:00
Timo Sirainen
ddf1b27c04 Added --with-perl-staticlib option to configure. If used, irssi's perl
libraries are compiled statically into irssi binary.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1914 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 23:17:27 +00:00
Timo Sirainen
bbd4b47306 Removed unfinished code that was not supposed to go to cvs..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1913 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 23:12:55 +00:00
Timo Sirainen
2a75c88f99 Added support for changing indentation behaviour with modules.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1912 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 22:52:15 +00:00
Timo Sirainen
f7683c0423 Added a bit better error reporting.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1911 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 22:24:14 +00:00
Timo Sirainen
bdf5bf9785 Removed some unused code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1910 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 22:18:39 +00:00
Timo Sirainen
b43f210a47 Reset QUIT and INTR keys at quit.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1909 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 21:19:54 +00:00
Timo Sirainen
5f1cc94f84 Redraw was buggy if entry line didn't continue to end of line.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1908 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 14:13:42 +00:00
Timo Sirainen
319e852bb4 window-top-statusbars weren't working properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1907 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 13:57:54 +00:00
Timo Sirainen
8a5cda6167 Always set the newly created entry active. Currently we don't support multiple, but if the entry moves between statusbars sometimes we first create new one then destroy the old one and there's no active then..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1906 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 13:47:13 +00:00
Timo Sirainen
1c9a8ab897 /SET perl_use_lib setting to specify the path for irssi's perl libraries.
Default should work usually, but if you for some reason want to use different
then change this. May contain multiple paths separated with space.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1905 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 13:20:26 +00:00
Timo Sirainen
b2fdbd64c6 Don't print glib errors when parting a channel which isn't synced yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1904 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-23 21:28:16 +00:00
Timo Sirainen
7793f2fe73 Activity list colors are now configurable.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1903 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-23 21:26:03 +00:00
Timo Sirainen
3f3ea3c1b5 Using cbreak() mode again, but disable QUIT and INTR keys.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1902 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-23 20:55:22 +00:00
Timo Sirainen
3f578b4b53 /SCRIPT without parameters now prints list of loaded scripts.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1901 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-23 20:49:17 +00:00
Timo Sirainen
62c6a35aeb Added eval { } around the DynaLoader::dl_unload_file() calls to get rid of
the errors it's printing with perl < 5.6.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1900 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-23 20:37:53 +00:00
Timo Sirainen
d599f7bb99 /UNBAN -first | -last options added. Patch by fuchs.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1898 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-23 16:01:53 +00:00
Timo Sirainen
e4f34d9cd3 When logs are rotated, automatically create the new directory where to open
the log if it has changed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1897 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-22 21:26:58 +00:00
Timo Sirainen
9dc3176efd just some extra check - might fix some crash..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1892 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-22 12:19:27 +00:00
Timo Sirainen
89794348b1 Checking that autojoined channels weren't already joined in same chatnet had
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-22 09:33:32 +00:00
Timo Sirainen
230a51cefd Remove SYNTAX: OPER from here - it's already in core (and syntax.pl gets
twice the same syntaxes currently..)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1889 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 20:11:18 +00:00
Timo Sirainen
d2edd435b8 Static perl didn't work with botti.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1888 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 19:23:11 +00:00
Timo Sirainen
905a5127f4 if \x isn't a known escape sequence, it should print just x, not \x.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1887 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 18:58:09 +00:00
Timo Sirainen
99fe282e6d Moved theme registering stuff to Themes.xs. Corrected signal "script
destroy" -> "script destroyed" - unregistering themes works now properly.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1886 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 18:28:42 +00:00
Timo Sirainen
bc8ee2d26c Don't expand %{ and %} in themes to { and } - they could be treated as
abstracts again. Printing %{ and %} now prints just { and }. This fixes
printing {stuff} in statusbar (eg. {nick}).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1885 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 17:56:42 +00:00
Timo Sirainen
ebd0334cb6 Settings registered with Irssi::settings_add_xx() are now correctly removed
after script is unloaded.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1883 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 16:52:36 +00:00
Timo Sirainen
388d2e1f44 deinit() function is now checked and saved when loading module. Unloading
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-21 16:23:43 +00:00
Timo Sirainen
1256621041 Added reference counter to SERVER_CONNECT_REC. Since it's being moved around
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-21 13:59:07 +00:00
Timo Sirainen
ae1b5b0d50 added irssi_init_finished variable to core.h which is TRUE after "irssi init
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-21 13:22:28 +00:00
Timo Sirainen
1b64509ae2 quitmsg_is_split() updated to check that top-level domains must be 2+ chars
and contain only alphabets.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1878 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 11:49:17 +00:00
Timo Sirainen
feaee35653 Channels weren't synced if you joined multiple channels at once and one of
the chennels couldn't be joined for some reason.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1877 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 11:24:24 +00:00
Timo Sirainen
3ae5080619 /TOPIC <tab> inserts the topic in active channel.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1876 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 11:22:06 +00:00
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
ec81d7b6fe Deinitialize perl before textui stuff.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1873 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 10:31:03 +00:00
Timo Sirainen
79212504ec Lag statusbar item isn't anymore displayed always
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1872 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 10:25:37 +00:00
Timo Sirainen
b5fa93c6e7 Statusbar items weren't unregistered correctly when script was unloaded.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1871 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 10:22:55 +00:00
Timo Sirainen
a5142ec311 Initialize perl before fe_common_core_finish_init() or sending "irssi init
finished". This way if /LOAD perl is in startup-file we don't load it twice.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1870 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 09:25:29 +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
d4ef1bdd03 When printing server disconnection texts, use the server parameter for
printformat() so the texts go to correct windows.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1865 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 21:09:17 +00:00
Timo Sirainen
8433d560f0 forgot one core_sources -> common_sources change
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1864 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 20:23:07 +00:00
Timo Sirainen
ed779db220 renamed XXX_SOURCES -> xxx_sources so automake 1.5 won't complain about it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1863 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 20:14:00 +00:00
Timo Sirainen
3065583f7a Removed unwanted extra INCLUDES.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1862 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 20:07:33 +00:00
Timo Sirainen
76c6e9ab83 Dependencies finally work correctly in perl libraries (they're each compiled
separately now). Added statusbar code to available to perl, it's now
possible to create new statusbar items with perl scripts.

statusbar_items_redraw(char *name) can now be used to easily redraw all
named statusbar items in screen.

Probably several other changes I've already forgotten :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1861 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 19:52:07 +00:00
Timo Sirainen
17f4d6b5de added mainwindow_resize_freeze() and .._thaw() functions to temporarily
freeze all window resizes. It's now being used with statusbar code so
changing between split windows don't make the screen jump around.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1860 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 14:30:20 +00:00
Timo Sirainen
a5b32b70a7 Added API version check between perl module and perl libs.
perl_scripts_deinit() now destroys all dynamically loaded libraries (Irssi,
Irssi::Irc, Irssi::UI too) so /UNLOAD perl should now release more memory,
this also makes /unload perl, /load perl work again.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1859 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 13:19:25 +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
75ebab8089 Get the server tag to query from dcc->servertag, not dcc->server->tag, to
make it work correctly when accepting dcc chat when not connected to server.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1857 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 11:26:40 +00:00
Timo Sirainen
f33c283317 /BIND -delete doesn't anymore leave empty {} blocks in configuration file.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1856 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 11:20:37 +00:00
Timo Sirainen
69dccf4a67 When resizing terminal smaller, destroy some split windows if they don't fit
into screen otherwise. Also, irssi doesn't crash anymore or mess up the
screen even if terminal is resized to 1x1 size (not sure of 0x0, my terminal
doesn't resize that small, and maybe I shouldn't bother with it anyway :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1855 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 10:35:42 +00:00
Timo Sirainen
113486564f Fixed restoring split windows layout. Some other split window resizing fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1854 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 10:01:29 +00:00
Timo Sirainen
7d7b5e380e /LASTLOG -count option added. patch by dgl@dgl.cx
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1850 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-19 11:59:27 +00:00
Timo Sirainen
b9cdd10a86 format string exploit found & patch by cph@cph.demon.co.uk
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1849 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-19 11:37:13 +00:00
Timo Sirainen
40edf12dca Actions are now transferred correctly, own messages in main irssi are
transferred now to clients. Patch by ganesh@earth.li.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1848 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-19 11:28:56 +00:00
Timo Sirainen
980bd19808 mainwindow_set_statusbar_lines() resized only active window - not all
windows in that main window.. This made screen mess up for example with
/RELOAD.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1844 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-15 20:18:34 +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
8c5ac3fb24 refcount for timeouts/inputs wasn't 0 initially so it caused some memleaks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1842 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-15 18:30:33 +00:00
Timo Sirainen
b3779bc7a5 -ansicolors -mirccolors => -colors in /LOG OPEN syntax, since there's only -colors currently..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1841 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-15 15:31:40 +00:00
Timo Sirainen
b7e41fe358 /DEVOICE * should devoice operators having voices too.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1840 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-15 12:53:20 +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
2752599e7a fixed a minor memleak
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1836 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 13:45:27 +00:00
Timo Sirainen
44270041c2 Irssi lost channel key for secret/private channels after join.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1835 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 13:33:22 +00:00
Timo Sirainen
8c7243f19c delete_previous_word and delete_next_word now deletes only until
non-alphanumeric character is found. added delete_to_next_space command.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1833 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 11:32:06 +00:00
Timo Sirainen
4e9ff3d6d8 $winname expando didn't change on "window changed" signal.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1832 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 11:25:26 +00:00
Timo Sirainen
f86da8c0e5 Window-statusbars are created correctly with /RELOAD, some input line
fixes related to /RELOAD.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1831 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 11:17:13 +00:00
Timo Sirainen
1718083cf6 Resizing terminal works now properly, also sends "terminal resized" signal
now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1830 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 10:45:00 +00:00
Timo Sirainen
85749b70bd Reversed text (^V) works again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1828 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 10:14:32 +00:00
Timo Sirainen
b716b29cb7 fallback to sb_background in theme if no other statusbar background settings
were found.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1827 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 09:54:52 +00:00
Timo Sirainen
3e3f9ac223 $usermode's "user mode changed" signal had wrong argument check (server vs.
window) so it didn't really detect mode changes.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1826 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 09:48:30 +00:00
Timo Sirainen
80dd9a15ca Irssi::timeout_add() and Irssi::input_add() now accepts any type of variable
as data instead of just string.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1825 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 09:07:26 +00:00
Timo Sirainen
7e56ccba1e When active input line was destroyed, irssi didn't set active_entry to NULL.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1823 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13 16:59:03 +00:00
Timo Sirainen
dbe49236d2 Configurable statusbar - see default config file (irssi.conf) for example
how to configure it. Added %> format which clears to end of line using the
current bg color. Added support for multiple input lines (just the core, not
used anywhere yet).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1821 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13 16:11:13 +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
56331f78e0 Use the nick as target when printing notify messages, so they go to query windows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1817 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-01 12:05:50 +00:00
Timo Sirainen
de0ab10145 /SET translation was broken - fixed by lam@e-gate.pl.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1815 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-01 07:04:11 +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
a51170c00f channel_create() wasn't called properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1813 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-22 16:06:15 +00:00
Timo Sirainen
80df4378d3 added config_node_first() function to get the first non-comment node.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1812 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-22 15:24:40 +00:00
Timo Sirainen
5976d82fa7 config_node_next() - Returns the next non-comment node in list. Use this
function when reading blocks/lists in config file.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1811 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-22 14:53:54 +00:00
Timo Sirainen
bb507a8b85 /SET translation now says if there were any errors
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1810 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-22 11:25:08 +00:00
Timo Sirainen
e41f1dc73f bind_key format updated. Doesn't truncate the key now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1807 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-21 14:09:44 +00:00
Timo Sirainen
d46db0aac2 When using /SET hostname ipv6:address, replace the ':' char with '_' so it
won't break the USER command which is sent to server at connect.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1806 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 17:56:33 +00:00
Timo Sirainen
29d983093e PARAMS -> ARGS fix again..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1805 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 16:50:27 +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
8104317897 perl_signal_remove() didn't work.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1801 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 14:21:46 +00:00
Timo Sirainen
0abee30dc2 "Unknown chat network" error now tells to create it with /IRCNET ADD
(..which is a bit wrong with non-IRC..)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1799 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-18 15:37:07 +00:00
Timo Sirainen
56b7f5ecbf Print the log's expanded file name when complaining about not being able to
create log file.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1798 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-17 13:04:23 +00:00
Timo Sirainen
2655c1ffe0 ..the same fix..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1797 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-13 13:08:25 +00:00
Timo Sirainen
8e6f743893 Don't crash if the IRC server doesn't print your nick in /NAMES list after
join.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1796 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-13 13:06:19 +00:00
Timo Sirainen
20e26554cd The new /SET dcc_port range didn't work properly..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1795 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-12 12:19:59 +00:00
Timo Sirainen
50eae89a96 /BIND ^W-1 was treated as ^W + '-' + '1', not as ^W + '1'..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1794 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 18:32:43 +00:00
Timo Sirainen
5360b3eaaf escape_target() didn't escape / chars properly, it just crashed irssi..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1793 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 18:20:10 +00:00
Timo Sirainen
3432f02a05 It's now possible to stop single character /BINDs from printing to input
line. Hiascii characters didn't work properly with /BIND.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1792 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 18:15:17 +00:00
Timo Sirainen
8cab35aed3 Server notices shouldn't contain target field when printing it, it's always
you anyway.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1790 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 18:02:17 +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
41df7da60e Added option /SET channel_sync - if disabled irssi disables the channel
syncing entirely. This breaks /BAN and probably something else too. Just a
temporarily kludge until I fix this properly (on demand /USERHOST at /BAN
time, etc.).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1786 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 15:45:42 +00:00
Timo Sirainen
db2a25d22d /SET dcc_port accepts now port range (eg. "10000 20000")
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1784 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-10 20:21:05 +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
9dd057825b Disabled using idcok() which caused redrawing problems with netbsd.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1782 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-10 15:34:49 +00:00
Timo Sirainen
be6cf00ebb Restoring split windows layout didn't work properly (didn't I already commit
this days ago?)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1781 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-09 12:20:17 +00:00
Timo Sirainen
8e3005a1c1 /WINDOW MOVE UP|DOWN might have crashed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1780 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-09 12:12:28 +00:00
Timo Sirainen
5c45593f02 /WINDOW ITEM MOVE didn't work properly if there was space after parameter
(..which tab-completion added..)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1779 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-08 18:57:09 +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
1cb3f94eeb Use only the first word from username when sending it to server.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1776 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-06 13:12:52 +00:00
Timo Sirainen
cac1cbf2cf mainwindow_set_size() called mainwindow_shrink() improperly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1775 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-31 20:27:43 +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
ff884ba0bb Print the server tag in "query started" messages with query->server_tag, not
query->server->tag since query->server can be NULL when restoring window
layout.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1773 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-31 16:32:35 +00:00
Timo Sirainen
6597d2d1c6 Added command /RESIZE for resizing the terminal when SIGWINCH isn't supported.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1772 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-28 12:24:46 +00:00
Timo Sirainen
d1e0a0f44f Check that word isn't empty instead of just assuming it isn't. This one
probably caused several completion problems.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1771 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-28 11:12:03 +00:00
Timo Sirainen
2dae72a698 removed accidental 'i' :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1768 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-23 10:54:54 +00:00
Timo Sirainen
5bf0edbb35 Added server tag to query_start format.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1767 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-23 10:32:32 +00:00
Timo Sirainen
1c07041811 Added option /SET autolog_colors. Colors are now off by default for /WINDOW
LOGs too.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1764 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-20 12:01:01 +00:00
Timo Sirainen
bdaeaa11cd /LASTLOG: start parameter wasn't handled correctly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1763 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-17 14:08:35 +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
422ef7759d typofix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1761 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-17 11:55:08 +00:00
Timo Sirainen
fd69089568 added textui
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1760 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-17 11:51:21 +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
295d16536e quitmsg_is_split() fix - the hosts must contain the domain part now (ie.
"word1 word2" isn't a netsplit)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1758 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 13:17:11 +00:00
Timo Sirainen
6c022b0a5e Some support for lain ircd's /SETHOST - It /PART + /JOINs all channels, so
add all the joined channels to window binds temporarily so /PART doesn't
close the windows if /SET autoclose_windows is ON.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1757 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 12:33:29 +00:00
Timo Sirainen
1de695ae1a Rewrote quitmsg_is_split(). A bit faster now and doesn't match to quit
messages like "foo. bar."


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1756 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 11:53:08 +00:00
Timo Sirainen
87a439e994 Irssi::TextUI::TextBufferVew should also contain the scroll..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1755 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 11:24:11 +00:00
Timo Sirainen
5694dbfdb7 Updated for view->scroll.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1754 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 11:23:22 +00:00
Timo Sirainen
ed93f91d96 Typofix - might have caused a crash if channel was destroyed with /WINDOW
CLOSE.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1753 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 11:22:19 +00:00
Timo Sirainen
3deb0a7b66 --more-- checker uses now "gui print text finished" signal. "gui " part was
missing from signal_remove("gui print text finished") in gui-printtext.c..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1752 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 01:19:34 +00:00
Timo Sirainen
285b33e992 /SET scroll ON - should the windows be scrolled by default when you're at
bottom. /WINDOW SCROLL ON|OFF|DEFAULT - Window specific scrolling behaviour,
also saved in windows layout.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1751 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 01:14:26 +00:00
Timo Sirainen
51b1d80fbe Removed trigraphs by adding "" in the middle.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1750 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:53:56 +00:00
Timo Sirainen
1cd033943a Added missing module_register() calls.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1749 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:43:50 +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
78b1e8d9d6 "IRC Net" -> "Network" in /SERVER LIST and /CHANNEL LIST
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1746 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-13 22:01:38 +00:00
Timo Sirainen
85862082b3 max_query_chans set to 1 by default. Set to 10 in networks where it's known
to work.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1745 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-13 14:14:09 +00:00
Timo Sirainen
f370a3cc2e /INVITELIST prints "Invite list is empty" message and complains about not
being synced. Changed level to CLIENTNOTICE when printing the "no bans"
message.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1744 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-13 14:00:57 +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
08b9062028 textbuffer_view_remove_line() fixes (with a small kludge..)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1741 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-12 18:25:43 +00:00
Timo Sirainen
53c13065d2 One more limit to "key" names - it can't start with a digit. This allows us
to use /BIND foo meta2-18~ etc. more easily.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1740 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-12 17:05:36 +00:00
Timo Sirainen
55be71a726 Bugfix to keyb. code :) And now the "key" names can contain only
alphanumeric + '_' characters, which makes /BIND foo meta-5~ work again
because 5~ are treated separately, not as one "key" name.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1739 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-12 17:02:06 +00:00
Timo Sirainen
22e5f3a3fe Keyboard code fixes - meta-arrows etc. should work now correctly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1738 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-12 16:48:34 +00:00
Timo Sirainen
a444a3c92a /WINDOW CLOSE <first> didn't work if <last> too wasn't specified..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1737 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-12 13:05:57 +00:00
Timo Sirainen
33fbc0a069 Removed some extra ';' chars which made it not compile with perl 5.00x.
textbuffer_get_lines() now actually returns the value.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1734 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-09 10:26:02 +00:00
Timo Sirainen
01d3e74f63 Added Irssi::TextUI.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1733 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-09 01:59:36 +00:00
Timo Sirainen
22e1a6dacc /VERSION command and /SV alias now print the version date too.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1732 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-09 00:50:22 +00:00
Timo Sirainen
2aaed8dc0b Irssi crashed if script died in a signal handler.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1730 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 22:43:00 +00:00
Timo Sirainen
c54646cad9 "mail counter" signal is now sent when mail counter is updated in statusbar.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1728 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 20:12:38 +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
b667af72aa Restoring window layout shouldn't make the queries active.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1726 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 18:23:25 +00:00
Timo Sirainen
c86333393c Changed signal / function names for /LAYOUT stuff. /LAYOUT RESET now resets
the split windows too.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1725 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 18:05:50 +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
a8193b168a Never insert NUL characters to entry line (Ctrl-Space)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1723 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 16:39:27 +00:00
Timo Sirainen
59a1a4d649 /BAN [-type] -> /BAN [-normal | -user | -host | -domain | -custom <type>].
Added ban type "User"


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1722 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 16:22:01 +00:00
Timo Sirainen
4737d16290 Fixed leaking window binds. They were added but rarely removed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1721 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 16:08:47 +00:00